]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
GDB: testsuite: s390: Don't return value from top-level (sed)
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>
Wed, 29 Apr 2026 23:04:00 +0000 (20:04 -0300)
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>
Fri, 8 May 2026 21:49:23 +0000 (21:49 +0000)
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 <tom@tromey.com>
gdb/testsuite/gdb.arch/s390-stackless.exp
gdb/testsuite/gdb.arch/s390-tdbregs.exp
gdb/testsuite/gdb.arch/s390-vregs.exp

index ba7e70faf95ddac9af631e438a06acdb4143b138..567f37c41abd3fee65c03b89caccb10e08b3cad5 100644 (file)
@@ -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.
index e0b9284874f42553a86fd7cc4fb9bd767eec86d7..d9bccb8009b5edb0cb7b543fad388022c295849a 100644 (file)
@@ -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" {
index 99dd3b219750888d7753efe0d2d7a4ea093dfefd..33da5f340f9799b44007a1aeeb6fe66b9f20842f 100644 (file)
@@ -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"