[binutils-gdb] GDB: testsuite: sparc: 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=3d7e9ef7156d05bce4a23fdbfe4c6fc801c176af

commit 3d7e9ef7156d05bce4a23fdbfe4c6fc801c176af
Author: Thiago Jung Bauermann <[email protected]>
Date:   Wed Apr 29 20:04:01 2026 -0300

    GDB: testsuite: sparc: Don't return value from top-level (sed)
    
    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.
    
    Approved-By: Tom Tromey <[email protected]>

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

diff --git a/gdb/testsuite/gdb.arch/sparc-sysstep.exp b/gdb/testsuite/gdb.arch/sparc-sysstep.exp
index 2ae7719ae39..9a8c292611a 100644
--- a/gdb/testsuite/gdb.arch/sparc-sysstep.exp
+++ b/gdb/testsuite/gdb.arch/sparc-sysstep.exp
@@ -29,11 +29,11 @@ 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
diff --git a/gdb/testsuite/gdb.arch/sparc64-adi.exp b/gdb/testsuite/gdb.arch/sparc64-adi.exp
index 3024527d48d..9fc7084e4a1 100644
--- a/gdb/testsuite/gdb.arch/sparc64-adi.exp
+++ b/gdb/testsuite/gdb.arch/sparc64-adi.exp
@@ -24,11 +24,11 @@ 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"]" \
diff --git a/gdb/testsuite/gdb.arch/sparc64-regs.exp b/gdb/testsuite/gdb.arch/sparc64-regs.exp
index 28948aec966..427c7d93493 100644
--- a/gdb/testsuite/gdb.arch/sparc64-regs.exp
+++ b/gdb/testsuite/gdb.arch/sparc64-regs.exp
@@ -23,11 +23,11 @@ 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
 }
 
 ##########################################
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.