From: Thiago Jung Bauermann Date: Wed, 29 Apr 2026 23:04:00 +0000 (-0300) Subject: GDB: testsuite: s390: Don't return value from top-level (sed) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2403e8f84d36cee62fc9e3f0ec4dec0436000e1d;p=thirdparty%2Fbinutils-gdb.git GDB: testsuite: s390: Don't return value from top-level (sed) 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. Approved-By: Tom Tromey --- diff --git a/gdb/testsuite/gdb.arch/s390-stackless.exp b/gdb/testsuite/gdb.arch/s390-stackless.exp index ba7e70faf95..567f37c41ab 100644 --- a/gdb/testsuite/gdb.arch/s390-stackless.exp +++ b/gdb/testsuite/gdb.arch/s390-stackless.exp @@ -18,7 +18,7 @@ require {istarget "s390*-*-*"} standard_testfile .S if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } { - return -1 + return } # Run until SIGSEGV. diff --git a/gdb/testsuite/gdb.arch/s390-tdbregs.exp b/gdb/testsuite/gdb.arch/s390-tdbregs.exp index e0b9284874f..d9bccb8009b 100644 --- a/gdb/testsuite/gdb.arch/s390-tdbregs.exp +++ b/gdb/testsuite/gdb.arch/s390-tdbregs.exp @@ -28,11 +28,11 @@ standard_testfile .c # 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" { diff --git a/gdb/testsuite/gdb.arch/s390-vregs.exp b/gdb/testsuite/gdb.arch/s390-vregs.exp index 99dd3b21975..33da5f340f9 100644 --- a/gdb/testsuite/gdb.arch/s390-vregs.exp +++ b/gdb/testsuite/gdb.arch/s390-vregs.exp @@ -28,11 +28,11 @@ if {[isnative]} { 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 @@ -185,7 +185,7 @@ 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"