From 792beba6ac48caa9d09470584cc4d9ddd023a96e Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Thu, 6 Nov 2025 10:39:33 +0100 Subject: [PATCH] [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. --- gdb/testsuite/gdb.base/callfuncs.exp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 } } -- 2.47.3