gdb/testsuite: Remove duplicates from gdb.base/decl-before-def.exp
authorLancelot SIX <lsix@lancelotsix.com>
Fri, 19 Nov 2021 23:27:18 +0000 (23:27 +0000)
committerLancelot SIX <lsix@lancelotsix.com>
Fri, 7 Jan 2022 22:43:32 +0000 (22:43 +0000)
When running the testsuite, I have:

    Running .../gdb/testsuite/gdb.base/decl-before-def.exp ...
    DUPLICATE: gdb.base/decl-before-def.exp: p a

Fix by giving explicit names to the two tests that use the same command.

Tested on x86_64-linux.

gdb/testsuite/gdb.base/decl-before-def.exp

index 970cdcc33fac4045a548072780e39239c307da1b..c4120a2b81302a0cc020931fb3c38ac4431d4200 100644 (file)
@@ -23,10 +23,10 @@ if {[prepare_for_testing "failed to prepare" $testfile $sources]} {
 # This is required due to PR25764.
 gdb_test "maint expand-symtabs"
 
-gdb_test "p a" { = \{1, 2\}}
+gdb_test "p a" { = \{1, 2\}} "no running process: p a"
 
 if ![runto_main] then {
     return 0
 }
 
-gdb_test "p a" { = \{1, 2\}}
+gdb_test "p a" { = \{1, 2\}} "running process: p a"