This patch manually changes "return -1" statements that weren't caught
by the sed command.
These return statements return at top level but inside block such as
save_vars and with_test_prefix.
I also fixed one case of top-level "return 0".
Approved-By: Tom Tromey <tom@tromey.com>
}
if { [prepare_for_testing "failed to prepare" $testfile $srcfile debug] } {
- return -1
+ return
}
}
set executable "$binfile-${test}"
if {[build_executable "failed to prepare" $executable $srcfile \
[list debug pthreads additional_flags=-D${def}]]} {
- return -1
+ return
}
set target_executable [gdb_remote_download target $executable]
}
if { [prepare_for_testing "failed to prepare" $testfile $srcfile debug] } {
- return -1
+ return
}
}
}
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
}
set gdbserver_reconnect_p 1
if { [info proc gdb_reconnect] == "" } {
unsupported "requires gdbserver reconnect"
- return 0
+ return
}
standard_testfile
}
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
- return -1
+ return
}
}
}
if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
- return -1
+ return
}
}
}
if { [prepare_for_testing "failed to prepare" $testfile $srcfile debug] } {
- return -1
+ return
}
}