]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
GDB: testsuite: TUI: Don't return 0 from top-level (manual)
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>
Wed, 29 Apr 2026 23:04:27 +0000 (20:04 -0300)
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>
Fri, 8 May 2026 21:55:59 +0000 (18:55 -0300)
This patch changes statements that return 0 from the top level, and also
one "return -1" statement that wasn't caught by sed.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/gdb.tui/basic.exp
gdb/testsuite/gdb.tui/resize-2.exp
gdb/testsuite/gdb.tui/tui-disasm-long-lines.exp
gdb/testsuite/gdb.tui/tui-mode-switch.exp

index 26264082a16365588ca79c92d689458c438591cb..45fdf3a7a76f28aa4d1aee1835c75667f2d4985d 100644 (file)
@@ -70,7 +70,7 @@ for { set i 1 } { $i <= $Term::_cols } { incr i } {
 gdb_assert { $main_screen_line == 7 } \
     "check main is where we expect on the screen"
 if { $main_screen_line == -1 } {
-    return 0
+    return
 }
 
 # Check the horizontal scrolling.
index 69578cc4a22e300ab018289e4a6154dce1fde52e..b7eb38f3c0469662ab5ef3b64a11b75881879c69 100644 (file)
@@ -27,7 +27,7 @@ gdb_test "tui new-layout command-layout cmd 1"
 
 if {![Term::prepare_for_tui]} {
     unsupported "TUI not supported"
-    return 0
+    return
 }
 
 # Enter TUI.
index 58add6dc32915f154e3dfab85e520eb153930814..00f52c7cdfb6692ad28912266c27eb858e3de4b9 100644 (file)
@@ -31,7 +31,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "$binfile" \
     if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "$binfile" \
              executable $ccopts] != "" } {
        untested "compile"
-       return -1
+       return
     }
 }
 
index c60596213b859c6bd47267698c99042bade1cfc8..250b557125ecc25492d776928d6a3f9df69c3133 100644 (file)
@@ -15,7 +15,7 @@ Term::with_term $term {
 
 if {![Term::prepare_for_tui]} {
     unsupported "TUI not supported"
-    return 0
+    return
 }
 
 # Generate prompt.