[gdb/testsuite] Remove redundant FAIL in gdb.base/info-os.exp
authorTom de Vries <tdevries@suse.de>
Thu, 30 Sep 2021 17:07:48 +0000 (19:07 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 30 Sep 2021 17:07:48 +0000 (19:07 +0200)
When running test-case gdb.base/info-os.exp with target board unix/-bad, I run
into:
...
gdb compile failed, gcc: error: unrecognized command line option '-bad'
UNTESTED: gdb.base/info-os.exp: failed to prepare
FAIL: gdb.base/info-os.exp: cannot compile test program
...

Remove the redundant FAIL.

Tested on x86_64-linux.

gdb/testsuite/gdb.base/info-os.exp

index 14bbbd95a0793f4a71c0a02af5bf7af889c9d678..c33b47692b50fc93650046a89440b094795ee36b 100644 (file)
@@ -29,7 +29,6 @@ if [gdb_skip_xml_test] then {
 
 # Compile test program.
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}] } {
-    fail "cannot compile test program"
     return -1
 }