[v2,09/37] GDB: testsuite: s390: Don't return value from top-level (sed)

Message ID 20260429230432.60487-10-thiago.bauermann@linaro.org
State New
Headers
Series GDB: testsuite: Fix top-level returns |

Commit Message

Thiago Jung Bauermann April 29, 2026, 11:04 p.m. UTC
  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(-)
  

Patch

diff --git a/gdb/testsuite/gdb.arch/s390-stackless.exp b/gdb/testsuite/gdb.arch/s390-stackless.exp
index ba7e70faf95d..567f37c41abd 100644
--- a/gdb/testsuite/gdb.arch/s390-stackless.exp
+++ b/gdb/testsuite/gdb.arch/s390-stackless.exp
@@ -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
 
diff --git a/gdb/testsuite/gdb.arch/s390-tdbregs.exp b/gdb/testsuite/gdb.arch/s390-tdbregs.exp
index e0b9284874f4..d9bccb8009b5 100644
--- a/gdb/testsuite/gdb.arch/s390-tdbregs.exp
+++ b/gdb/testsuite/gdb.arch/s390-tdbregs.exp
@@ -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."
diff --git a/gdb/testsuite/gdb.arch/s390-vregs.exp b/gdb/testsuite/gdb.arch/s390-vregs.exp
index 99dd3b219750..33da5f340f97 100644
--- a/gdb/testsuite/gdb.arch/s390-vregs.exp
+++ b/gdb/testsuite/gdb.arch/s390-vregs.exp
@@ -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"