]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
GDB: testsuite: TUI: Don't return -1 from top-level (sed)
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>
Wed, 29 Apr 2026 23:04:26 +0000 (20:04 -0300)
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>
Fri, 8 May 2026 21:55:59 +0000 (18:55 -0300)
This patch is purely the result of running:

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

inside gdb/testsuite/gdb.tui.

Approved-By: Tom Tromey <tom@tromey.com>
23 files changed:
gdb/testsuite/gdb.tui/basic.exp
gdb/testsuite/gdb.tui/break.exp
gdb/testsuite/gdb.tui/compact-source.exp
gdb/testsuite/gdb.tui/corefile-run.exp
gdb/testsuite/gdb.tui/flush-after-run.exp
gdb/testsuite/gdb.tui/list-before.exp
gdb/testsuite/gdb.tui/list.exp
gdb/testsuite/gdb.tui/main-2.exp
gdb/testsuite/gdb.tui/main.exp
gdb/testsuite/gdb.tui/new-layout.exp
gdb/testsuite/gdb.tui/regs.exp
gdb/testsuite/gdb.tui/reread.exp
gdb/testsuite/gdb.tui/resize-3.exp
gdb/testsuite/gdb.tui/resize-one-line.exp
gdb/testsuite/gdb.tui/resize.exp
gdb/testsuite/gdb.tui/scroll.exp
gdb/testsuite/gdb.tui/tui-focus.exp
gdb/testsuite/gdb.tui/tui-init-source.exp
gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.exp
gdb/testsuite/gdb.tui/tui-layout-asm.exp
gdb/testsuite/gdb.tui/tui-layout.exp
gdb/testsuite/gdb.tui/winheight.exp
gdb/testsuite/gdb.tui/winwidth.exp

index 7909cea674d6761dfc7c4a7452b7471c96f1f0bc..26264082a16365588ca79c92d689458c438591cb 100644 (file)
@@ -24,7 +24,7 @@ standard_testfile main-one-line.c
 set main_line [gdb_get_line_number "int main"]
 
 if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
-    return -1
+    return
 }
 
 Term::clean_restart 24 80 $testfile
index 4e07a0c0b6915b0cf539aba47a513d8107c77340..154ca40b69fa8543a5afef0ecd58a92e711114e1 100644 (file)
@@ -20,7 +20,7 @@ tuiterm_env
 standard_testfile tui-layout.c
 
 if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
-    return -1
+    return
 }
 
 Term::clean_restart 24 80 $testfile
index 9f41a160b3f44b9df8805bfd1905d32131bff931..e9478bbeb86323f8c5c8abbae2d2e6976956170b 100644 (file)
@@ -38,7 +38,7 @@ puts $fd $src_txt
 close $fd
 
 if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
-    return -1
+    return
 }
 
 Term::clean_restart 24 80 $testfile
index 7e1184ecf040da708239fbc28313a7fb4388057f..1361e4a7f6ded37b989fee748db4422d60db97c1 100644 (file)
@@ -27,19 +27,19 @@ standard_testfile tui-layout.c
 set core [standard_output_file "${testfile}.core"]
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile debug] } {
-    return -1
+    return
 }
 
 # Only run on native boards.
 require {target_can_use_run_cmd core}
 
 if { ![runto_main] } {
-    return -1
+    return
 }
 
 if { ![gdb_gcore_cmd "$core" "save a corefile"] } {
     untested "could not generate a corefile"
-    return -1
+    return
 }
 
 set src_line "return 0;"
index ecc2caafc33de4961d83a502b4b21b44d52d980b..db20b8cee80b745533cb99791a2ed3acf6cc40b5 100644 (file)
@@ -24,7 +24,7 @@ tuiterm_env
 standard_testfile
 
 if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
-    return -1
+    return
 }
 
 Term::clean_restart 24 80 $testfile
index 55485aa5629c761ea54ad64e5c1ec19f8f0c5e8d..5d3cef954d49a65d985385129806646e25f82d8f 100644 (file)
@@ -20,7 +20,7 @@ tuiterm_env
 standard_testfile tui-layout.c
 
 if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
-    return -1
+    return
 }
 
 Term::clean_restart 24 80 $testfile
index de58afa53e1a8e390ce9585ebe719af803f66f6f..5cefebc7e016d6f76a0d2890a01459f266e09590 100644 (file)
@@ -20,7 +20,7 @@ tuiterm_env
 standard_testfile tui-layout.c
 
 if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
-    return -1
+    return
 }
 
 Term::clean_restart 24 80 $testfile
index 1b8068e3a3610f770cfdca8eed4893ac16235a1a..9b3b38645b0f36d5514b0078d9da916ab1392451 100644 (file)
@@ -23,7 +23,7 @@ tuiterm_env
 standard_testfile tui-layout.c
 
 if { [build_executable "failed to prepare" $testfile $srcfile ] == -1} {
-    return -1
+    return
 }
 
 Term::clean_restart 24 80 $testfile
index 5bc6b91cdee45ce3e0ac1eb8c49e8c2f7396023c..d8a9c8eebe85b0361aec30c6839d336dcfd44cf7 100644 (file)
@@ -22,7 +22,7 @@ tuiterm_env
 standard_testfile tui-layout.c
 
 if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
-    return -1
+    return
 }
 
 # Note: don't pass the executable here
index f293773f9d1558fe3f68a7f7ebae286bf9cea5f9..e544ef6fd90a0d80b26d2cb370b6fb9496099a72 100644 (file)
@@ -20,7 +20,7 @@ tuiterm_env
 standard_testfile tui-layout.c
 
 if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
-    return -1
+    return
 }
 
 # Make sure TUI is supported before continuing.
index 3c524ad49a70459c579431ffeafdad7466d429c3..8169538da85c25fd376538fa3c0aa4eda1d55de8 100644 (file)
@@ -20,7 +20,7 @@ tuiterm_env
 standard_testfile tui-layout.c
 
 if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
-    return -1
+    return
 }
 
 Term::clean_restart 24 80 $testfile
index de35fef744cd8ae81033a5e7fe3ca9a4dc7f420d..3ed0839e1c836feed2360f2a4279f19a21d1f9ad 100644 (file)
@@ -23,7 +23,7 @@ tuiterm_env
 standard_testfile main-one-line.c
 
 if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
-    return -1
+    return
 }
 
 Term::clean_restart 24 80 $testfile
index d9e0948a9a80e1c502fc2f6c6bf5d5202c72fe41..fdaffe0064190cfaad1cc93834aa8af3619dd38b 100644 (file)
@@ -23,7 +23,7 @@ if { [build_executable_from_specs "failed to prepare" \
          $testfile {debug} \
          $srcfile {debug} \
          $srcfile2 {nodebug}] == -1 } {
-    return -1
+    return
 }
 
 tuiterm_env
index f5e2858b05d277a54c0cf2d86708034369cc28b2..0a47dcf0e7f8b56ff531379c260bcade0a0181bc 100644 (file)
@@ -22,7 +22,7 @@ tuiterm_env
 standard_testfile main-one-line.c
 
 if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
-    return -1
+    return
 }
 
 Term::clean_restart 24 80 $testfile
index 93918f3b3560945e4fa9fc5ce6e92ba8be45dd6e..25f52c6a5b8ee6e9899b9b397aa7cc5441dfb7bc 100644 (file)
@@ -20,7 +20,7 @@ tuiterm_env
 standard_testfile tui-layout.c
 
 if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
-    return -1
+    return
 }
 
 Term::clean_restart 24 80 $testfile
index e9fa829f40ecfe283c40b3e84eaf0315d51756f9..0162cfd8db7bc09b5cd5047c73ff5d6fc98c646e 100644 (file)
@@ -24,7 +24,7 @@ tuiterm_env
 standard_testfile tui-layout.c
 
 if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
-    return -1
+    return
 }
 
 Term::clean_restart 24 80 $testfile
index 5df76b59b864d2541c849288f31fd048bce6f887..310b3a4732060d639237224013da20f6ed6f0d14 100644 (file)
@@ -23,7 +23,7 @@ load_lib gdb-python.exp
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
-    return -1
+    return
 }
 
 # Run a series of tests based on various test specifications.
index edd364e05b12377f7757a9018079e36b97ad3234..f49b0ecdcbdb1ad824142ccfee38792c71654a4f 100644 (file)
@@ -23,7 +23,7 @@ tuiterm_env
 standard_testfile
 
 if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
-    return -1
+    return
 }
 
 Term::clean_restart 24 80 $testfile
index e54ae69997edccb57f0c8e7038d9216d52b53966..b3dd72ce1ceb781ef32becb591c054018ed42f33 100644 (file)
@@ -27,7 +27,7 @@ lappend opts additional_flags=-nostdlib
 lappend opts ldflags=-nostartfiles
 
 if { [build_executable "failed to prepare" $testfile $srcfile $opts] == -1 } {
-    return -1
+    return
 }
 
 Term::clean_restart 24 80 $testfile
index bbaa4f9b846fb8784365d0c2e54c9a8f3cb528db..01193b6fb44b9154c72148804acfe43c8eaa3d6c 100644 (file)
@@ -21,7 +21,7 @@ tuiterm_env
 standard_testfile tui-layout.c
 
 if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
-    return -1
+    return
 }
 
 # The wider the window is, the less line truncation happens, so matching
index 05ca3b4502908e3959c53f74ffe72ced7a83b929..1cb70504e3f80bfbed1254763ba3e6e8b047c069 100644 (file)
@@ -23,7 +23,7 @@ tuiterm_env
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
-    return -1
+    return
 }
 
 # Run one test of the 'layout' command, selecting LAYOUT_NAME.
index 758f23d8f72304a9b64a68416976ea18d6476b7e..9daf08916af84c898113707c3122a58ccc227a09 100644 (file)
@@ -20,7 +20,7 @@ tuiterm_env
 standard_testfile tui-layout.c
 
 if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
-    return -1
+    return
 }
 
 Term::clean_restart 24 80 $testfile
index a18ff4edba1fe6f46612ae67198f556fb546b5d6..cc6c7dcd1536e689b7259acc568f4188ce9094eb 100644 (file)
@@ -20,7 +20,7 @@ tuiterm_env
 standard_testfile tui-layout.c
 
 if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
-    return -1
+    return
 }
 
 Term::clean_restart 24 80 $testfile