From: Tom de Vries Date: Thu, 6 Nov 2025 09:39:33 +0000 (+0100) Subject: [gdb/testsuite] Fix DUPLICATE in callfuncs.exp X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=792beba6ac48caa9d09470584cc4d9ddd023a96e;p=thirdparty%2Fbinutils-gdb.git [gdb/testsuite] Fix DUPLICATE in callfuncs.exp With test-case gdb.base/callfuncs.exp I get: ... UNTESTED: gdb.base/callfuncs.exp: failed to prepare ... UNTESTED: gdb.base/callfuncs.exp: failed to prepare DUPLICATE: gdb.base/callfuncs.exp: failed to prepare ... Fix this by moving a with_test_prefix up one level. Tested on x86_64-linux. --- diff --git a/gdb/testsuite/gdb.base/callfuncs.exp b/gdb/testsuite/gdb.base/callfuncs.exp index 59306d47a4e..d4a53e803c6 100644 --- a/gdb/testsuite/gdb.base/callfuncs.exp +++ b/gdb/testsuite/gdb.base/callfuncs.exp @@ -541,8 +541,9 @@ if { ![prepare_for_testing "failed to prepare" $testfile $srcfile "$compile_flag perform_all_tests 1 } -if { ![prepare_for_testing "failed to prepare" $testfile $srcfile "$compile_flags additional_flags=-DNO_PROTOTYPES"] } { - with_test_prefix "noproto" { +with_test_prefix "noproto" { + if { ![prepare_for_testing "failed to prepare" $testfile $srcfile \ + "$compile_flags additional_flags=-DNO_PROTOTYPES"] } { perform_all_tests 0 } }