From 1182b42df6b11fc9fe1619139a3ee80457d9d37e Mon Sep 17 00:00:00 2001 From: Lancelot SIX Date: Fri, 19 Nov 2021 23:27:18 +0000 Subject: [PATCH] gdb/testsuite: Remove duplicates from gdb.base/decl-before-def.exp MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/gdb.base/decl-before-def.exp b/gdb/testsuite/gdb.base/decl-before-def.exp index 970cdcc33fa..c4120a2b813 100644 --- a/gdb/testsuite/gdb.base/decl-before-def.exp +++ b/gdb/testsuite/gdb.base/decl-before-def.exp @@ -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" -- 2.30.2