From 2888fe8d193bd1e82e1e155b9795308184fe923b Mon Sep 17 00:00:00 2001 From: Carl Love Date: Thu, 18 Nov 2021 00:08:18 +0000 Subject: [PATCH] gdb fix PowerPC test gdb.arch/ppc-longdouble.exp The test complains of duplicate tests. DUPLICATE: gdb.arch/ppc-longdouble.exp: continue to breakpoint: return The do_test calls gdb_continue_to_breakpoint "return". The duplicates are the result of calling do_test three times with different arguments. This patch fixes the duplicate tests by adding $name to the gdb_continue_to_breakpoint argument. Patch tested on Power 10 ppc64le GNU/Linux, no duplicate tests reported, no new regression errors. --- gdb/testsuite/gdb.arch/ppc-longdouble.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.arch/ppc-longdouble.exp b/gdb/testsuite/gdb.arch/ppc-longdouble.exp index 6e3b1bda542..2a49e456a68 100644 --- a/gdb/testsuite/gdb.arch/ppc-longdouble.exp +++ b/gdb/testsuite/gdb.arch/ppc-longdouble.exp @@ -39,7 +39,7 @@ proc do_test { name {opts {}} } { # Run to the breakpoint at return. gdb_breakpoint [gdb_get_line_number "return"] - gdb_continue_to_breakpoint "return" + gdb_continue_to_breakpoint "return test: $name" # Print the value of ld gdb_test "print ld" ".* = 1\\.375.*" "the value of ld is 1.375 ($name)" -- 2.30.2