]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
GDB: testsuite: sparc: Don't return value from top-level (sed)
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>
Wed, 29 Apr 2026 23:04:01 +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/' sparc*.exp*

and

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

inside gdb/testsuite/gdb.arch.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/gdb.arch/sparc-sysstep.exp
gdb/testsuite/gdb.arch/sparc64-adi.exp
gdb/testsuite/gdb.arch/sparc64-regs.exp

index 2ae7719ae39de9febb195d226916bb35627436fe..9a8c292611af30150c6919287f2d9d29ff06c455 100644 (file)
@@ -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
index 3024527d48d97458e5eecdaa5da084042567e442..9fc7084e4a1268e21c3e83ee8fb2059774ec4562 100644 (file)
@@ -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"]" \
index 28948aec966c2b5ca6eb3907e5011a5d856184b2..427c7d93493f02fbdaa65857fbf34ae4d4c07106 100644 (file)
@@ -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
 }
 
 ##########################################