[gdb/python] Fix typo in test_python
authorTom de Vries <tdevries@suse.de>
Thu, 21 Jul 2022 12:55:00 +0000 (14:55 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 21 Jul 2022 12:55:00 +0000 (14:55 +0200)
Fix typo in ref_output_0 variable in test_python.

Tested by running the selftest on x86_64-linux with python 3.11.

gdb/python/python.c

index c0312413a730a7852e7ac5f5523001ba9e968ac9..c7d4157b70c3e5be78f0c1ea1b54d1a5fd5b9e03 100644 (file)
@@ -2242,7 +2242,7 @@ test_python ()
     SELF_CHECK (saw_exception);
     std::string ref_output_0 ("Traceback (most recent call last):\n"
                              "  File \"<string>\", line 0, in <module>\n"
-                             " KeyboardInterrupt\n");
+                             "KeyboardInterrupt\n");
     std::string ref_output_1 ("Traceback (most recent call last):\n"
                              "  File \"<string>\", line 1, in <module>\n"
                              "KeyboardInterrupt\n");