gdb/testsuite: Remove duplicates from gdb.base/decl-before-def.exp

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.
This commit is contained in:
Lancelot SIX
2021-11-19 23:27:18 +00:00
parent 08c8808ae2
commit 1182b42df6

View File

@ -23,10 +23,10 @@ if {[prepare_for_testing "failed to prepare" $testfile $sources]} {
# This is required due to PR25764. # This is required due to PR25764.
gdb_test "maint expand-symtabs" 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 { if ![runto_main] then {
return 0 return 0
} }
gdb_test "p a" { = \{1, 2\}} gdb_test "p a" { = \{1, 2\}} "running process: p a"