[binutils-gdb] GDB: testsuite: s390: Don't return value from top-level (sed)

Thiago Bauermann via Gdb-cvs <[email protected]>
Newsgroups gmane.comp.gdb.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2403e8f84d36cee62fc9e3f0ec4dec0436000e1d

commit 2403e8f84d36cee62fc9e3f0ec4dec0436000e1d
Author: Thiago Jung Bauermann <[email protected]>
Date:   Wed Apr 29 20:04:00 2026 -0300

    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 <[email protected]>

Diff:
---
 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(-)

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"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.