This patch is purely the result of running:
$ sed -i 's/^ return -1/ return/' sparc*.exp*
and
$ sed -i 's/^ return 0/ return/' sparc*.exp*
inside gdb/testsuite/gdb.arch.
---
gdb/testsuite/gdb.arch/sparc-sysstep.exp | 4 ++--
gdb/testsuite/gdb.arch/sparc64-adi.exp | 4 ++--
gdb/testsuite/gdb.arch/sparc64-regs.exp | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
@@ -27,15 +27,15 @@ set testfile sparc-sysstep
set srcfile ${testfile}.c
set binfile ${objdir}/${subdir}/${testfile}
set opts {}
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {additional_flags=-g}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Watching the global variable will guarantee that gdb will
# single-step through the whole program.
@@ -22,15 +22,15 @@ require {istarget "sparc64*-*-linux*"}
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
[list debug libs=-ladi]] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "break [gdb_get_line_number "line breakpoint here"]" \
"Breakpoint .* at .*${srcfile}.*" \
"set line breakpoint in main"
@@ -21,15 +21,15 @@
require {istarget "sparc64*-*-linux*"}
standard_testfile .S
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
- return 0
+ return
}
##########################################
gdb_test "break $srcfile:test_ccr" "Breakpoint \[0-9\] at .*"
gdb_test "continue" "Continuing.*"