]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
GDB: testsuite: powerpc: Don't return value from top-level (manual)
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>
Wed, 29 Apr 2026 23:03:57 +0000 (20:03 -0300)
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>
Fri, 8 May 2026 21:49:23 +0000 (21:49 +0000)
This patch manually changes the "return -1" statements that weren't
caught by the sed command because they were in a misaligned line, which
is then aligned by this patch.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/gdb.arch/altivec-regs.exp
gdb/testsuite/gdb.arch/e500-abi.exp
gdb/testsuite/gdb.arch/e500-regs.exp
gdb/testsuite/gdb.arch/powerpc-d128-regs.exp
gdb/testsuite/gdb.arch/powerpc-prologue-frame.exp
gdb/testsuite/gdb.arch/vsx-regs.exp
gdb/testsuite/gdb.arch/vsx-vsr-float28.exp

index 4dd8610d8f152c16753edcb65d13a04ee5d58953..04dc342de6d42122a7f8eaf144c2e71a42dc57d6 100644 (file)
@@ -36,8 +36,8 @@ if {[test_compiler_info gcc*]} {
 }
 
 if  { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $compile_flags] != "" } {
-     untested "failed to compile"
-     return -1
+    untested "failed to compile"
+    return
 }
 
 gdb_start
index 6f549539e2c32e945785b3d1700596b623e67ff7..e0223fd678880b165c919feb75f3a48ed3d127e2 100644 (file)
@@ -29,8 +29,8 @@ set binfile ${objdir}/${subdir}/${testfile}
 set src1 ${srcdir}/${subdir}/${testfile}.c
 
 if  { [gdb_compile ${src1} ${binfile} executable {debug nowarnings}] != "" } {
-     untested "failed to compile"
-     return -1
+    untested "failed to compile"
+    return
 }
 
 gdb_start
index b9d172c058d78eb58be0e2842e9908e646b21aa9..03d6f42b533246db8b16043ba5e0a4f8e9e08aa7 100644 (file)
@@ -28,8 +28,8 @@ set binfile ${objdir}/${subdir}/${testfile}
 set src1 ${srcdir}/${subdir}/${testfile}.c
 
 if  { [gdb_compile ${src1} ${binfile} executable {debug nowarnings}] != "" } {
-     untested "failed to compile"
-     return -1
+    untested "failed to compile"
+    return
 }
 
 gdb_start
index 10c77ef29489f5313bdec39694a5389071919b28..7043fac5e5687af3fce3f42de39aacc9a4b7bf1c 100644 (file)
@@ -25,8 +25,8 @@ require {istarget "powerpc64*-*"}
 standard_testfile
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {quiet debug}] != "" } {
-     untested "failed to compile"
-     return -1
+    untested "failed to compile"
+    return
 }
 
 clean_restart $::testfile
index 1f41f3aaaa3f69096ef81dc9b308285ed7c54712..3899121f934196f164a4ec99f983048e66a950b0 100644 (file)
@@ -29,8 +29,8 @@ if {[gdb_compile \
 clean_restart $testfile
 
 if {![runto bar]} {
-  untested "could not run to bar"
-  return -1
+    untested "could not run to bar"
+    return
 }
 
 gdb_test "bt" \
index bb5675f175421dfa3ad4598d90beee961787d431..87f749f93b121ff36fb207a8a5d803637b57341d 100644 (file)
@@ -34,8 +34,8 @@ if {[test_compiler_info gcc*]} {
 }
 
 if  { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $compile_flags] != "" } {
-     untested "failed to compile"
-     return -1
+    untested "failed to compile"
+    return
 }
 
 gdb_start
@@ -181,7 +181,7 @@ for {set i 0} {$i < 32} {incr i 1} {
 # Test reading the core file.
 
 if {!$core_supported} {
-  return -1
+    return
 }
 
 clean_restart
index 217f240f437d08b37bd2be26c663fa97c5fd7049..436076f1003802455abacecf4df0673a3d301fc6 100644 (file)
@@ -33,8 +33,8 @@ if {[test_compiler_info gcc*]} {
 }
 
 if  { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $compile_flags] != "" } {
-     untested "failed to compile"
-     return -1
+    untested "failed to compile"
+    return
 }
 
 gdb_start