This patch is purely the result of running:
$ sed -i 's/^ return -1/ return/' s390*.exp*
and
$ sed -i 's/^ return 0/ return/' s390*.exp*
inside gdb/testsuite/gdb.arch.
I didn't include changes made to return statements inside procedures.
---
gdb/testsuite/gdb.arch/s390-stackless.exp | 2 +-
gdb/testsuite/gdb.arch/s390-tdbregs.exp | 4 ++--
gdb/testsuite/gdb.arch/s390-vregs.exp | 6 +++---
3 files changed, 6 insertions(+), 6 deletions(-)
@@ -16,11 +16,11 @@
require {istarget "s390*-*-*"}
standard_testfile .S
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
# Run until SIGSEGV.
gdb_run_cmd
@@ -26,15 +26,15 @@ standard_testfile .c
# the transaction. Thus tell the compiler to use soft float, so it
# doesn't emit them. Some GCC versions may otherwise do so, and an
# endless loop would result.
if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
[list "debug" "additional_flags=-msoft-float"]] } {
- return -1
+ return
}
if {![runto_main]} {
- return 0
+ return
}
gdb_test_multiple "next" "check for TE support" {
-re "Program received signal SIGILL,.*\r\n$gdb_prompt $" {
unsupported "no TE support."
@@ -26,15 +26,15 @@ if {[isnative]} {
remote_exec build "mkdir $coredir"
}
if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
[list "additional_flags=-mzarch"]] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Run to the first vector instruction and step it. If the inferior
# doesn't crash, we have vector support.
@@ -183,11 +183,11 @@ gdb_exit
set cores [glob -nocomplain -directory $coredir *core*]
if {[llength $cores] != 1} {
untested "core file not found"
remote_exec build "rm -rf $coredir"
- return -1
+ return
}
set destcore [standard_output_file ${testfile}.core]
remote_exec build "mv [file join $coredir [lindex $cores 0]] $destcore"
remote_exec build "rm -rf $coredir"