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

In aarch64-prologue.exp and arm-cmse-sgstubs.exp, this was caused by a
misaligned line, which is now fixed.

In aarch64-mte.exp, aarch64-non-address-bits.exp,
arm-pthread_cond_timedwait-bt.exp and thumb2-it.exp this is because the
return statements have extra indentation due to being inside
with_test_prefix, save_vars or gdb_test_multiple blocks.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/gdb.arch/aarch64-mte.exp
gdb/testsuite/gdb.arch/aarch64-non-address-bits.exp
gdb/testsuite/gdb.arch/aarch64-prologue.exp
gdb/testsuite/gdb.arch/arm-cmse-sgstubs.exp
gdb/testsuite/gdb.arch/arm-pthread_cond_timedwait-bt.exp
gdb/testsuite/gdb.arch/thumb2-it.exp

index 4826041e330aa1ed0c8d88e436d2dcb35a71c800..72d4bba7253112c1de74d37bf1490b0c972893a3 100644 (file)
@@ -278,7 +278,7 @@ with_test_prefix "print command" {
 
     if {$ltag == -1} {
        unresolved "unexpected tag value"
-       return -1
+       return
     }
 
     set atag [expr {($ltag + 1) % 16}]
@@ -335,14 +335,14 @@ gdb_test "continue" \
 # Restart to execute the async tag fault test.
 with_test_prefix "async" {
     if {![runto_main]} {
-       return -1
+       return
     }
 
     gdb_breakpoint "access_memory"
 
     if {[gdb_continue "access_memory"]} {
        fail "could not run to tagged memory test function"
-       return -1
+       return
     }
 
     # Force a tag fault.
index 8066b2035e1b94b91514ad0c767eb2adfb5db139..595dcb4f2ce1f285ebc320cd4238a7437cfaabfb 100644 (file)
@@ -56,7 +56,7 @@ gdb_test_multiple "ptype \$pauth_cmask" "fetch PAC cmask" {
     }
     -re ".*$gdb_prompt $" {
        fail $gdb_test_name
-       return 1
+       return
     }
 }
 
index c6fe2e262a5e6446b577f38b80f237fb24a200a1..509fd31e8b4ffb25e084f1338d590df8bfa7bea7 100644 (file)
@@ -23,7 +23,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile {nodebug}]} {
 }
 
 if {![runto_main]} {
-   return -1
+    return
 }
 
 # Ensure gdb can break at excessiveprologue then continue.
index c2ecaffd1d2c702b29e32ea2f68c5781785535a3..188ee1a913c4bd1b43a6a8a79f1a454514551b09 100644 (file)
@@ -23,7 +23,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile ]} {
 }
 
 if {![runto_main]} {
-   return -1
+    return
 }
 
 gdb_test "si" "0x.*" "branch to func from main"
index 85ca6e78210f5e47e8d4d0b715f9181ee6974ac6..02ae7009517005fe69a6211bc75d09628aba9bcc 100644 (file)
@@ -34,7 +34,7 @@ if { [build_executable "failed to prepare" ${testfile} ${srcfile} \
 save_vars { GDBFLAGS } {
     append GDBFLAGS " --readnever"
     if { [clean_restart $testfile] == -1 } {
-       return -1
+       return
     }
 }
 
index 0c9246b2131e0928a86360fb06251df84625ae3f..9ffcc6e1e3b9cd6ea6f8728f7ab0339d49e54084 100644 (file)
@@ -35,7 +35,7 @@ gdb_test_multiple "list" "list main" {
     -re ".*@ No Thumb-2.*$gdb_prompt $" {
        pass "list main"
        untested "skipping tests due to lack of Thumb-2"
-       return -1
+       return
     }
     -re ".*@ Thumb-2 OK.*$gdb_prompt $" {
        pass "list main"