]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Fix DUPLICATE in callfuncs.exp
authorTom de Vries <tdevries@suse.de>
Thu, 6 Nov 2025 09:39:33 +0000 (10:39 +0100)
committerTom de Vries <tdevries@suse.de>
Thu, 6 Nov 2025 09:39:33 +0000 (10:39 +0100)
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

index 59306d47a4e8aebdab9045e0ea1f30cf7345230c..d4a53e803c625f6a7213fa8e508d8a07c3c17a53 100644 (file)
@@ -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
     }
 }