Remove path name from test case master
authorTom Tromey <tromey@adacore.com>
Tue, 14 Nov 2023 18:47:27 +0000 (11:47 -0700)
committerTom Tromey <tromey@adacore.com>
Tue, 14 Nov 2023 18:47:27 +0000 (11:47 -0700)
'runtest' complains about a path in a test name, from the new test
case py-missing-debug.exp.

This patch fixes the problem by providing an explicit test name to
gdb_test.  I chose something very basic because the block in question
is already wrapped in with_test_prefix.

gdb/testsuite/gdb.python/py-missing-debug.exp

index 3e0d70b9d2215d0ebf8c6abc240b596b898f9930..0d73d2bf8d88c8c029cd2c3bd38842270b0e329b 100644 (file)
@@ -321,7 +321,8 @@ with_test_prefix "enable 'abc-def'" {
     set re [string_to_regexp $binfile]
 
     gdb_test "enable missing-debug-handler \"$re\" abc-def" \
-       "^1 missing debug handler enabled"
+       "^1 missing debug handler enabled" \
+       "enable missing-debug-handler"
 
     gdb_test "info missing-debug-handlers" \
        [multi_line \