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

Message ID 20260429230432.60487-11-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/' sparc*.exp*

and

$ sed -i 's/^    return 0/    return/' sparc*.exp*

inside gdb/testsuite/gdb.arch.
---
 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(-)
  

Patch

diff --git a/gdb/testsuite/gdb.arch/sparc-sysstep.exp b/gdb/testsuite/gdb.arch/sparc-sysstep.exp
index 2ae7719ae39d..9a8c292611af 100644
--- a/gdb/testsuite/gdb.arch/sparc-sysstep.exp
+++ b/gdb/testsuite/gdb.arch/sparc-sysstep.exp
@@ -27,15 +27,15 @@  set testfile sparc-sysstep
 set srcfile ${testfile}.c
 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
 # single-step through the whole program.
 
diff --git a/gdb/testsuite/gdb.arch/sparc64-adi.exp b/gdb/testsuite/gdb.arch/sparc64-adi.exp
index 3024527d48d9..9fc7084e4a12 100644
--- a/gdb/testsuite/gdb.arch/sparc64-adi.exp
+++ b/gdb/testsuite/gdb.arch/sparc64-adi.exp
@@ -22,15 +22,15 @@  require {istarget "sparc64*-*-linux*"}
 
 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"]" \
 	 "Breakpoint .* at .*${srcfile}.*" \
 	 "set line breakpoint in main"
diff --git a/gdb/testsuite/gdb.arch/sparc64-regs.exp b/gdb/testsuite/gdb.arch/sparc64-regs.exp
index 28948aec966c..427c7d93493f 100644
--- a/gdb/testsuite/gdb.arch/sparc64-regs.exp
+++ b/gdb/testsuite/gdb.arch/sparc64-regs.exp
@@ -21,15 +21,15 @@ 
 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
 }
 
 ##########################################
 gdb_test "break $srcfile:test_ccr" "Breakpoint \[0-9\] at .*"
 gdb_test "continue" "Continuing.*"