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.
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
}
}