[binutils-gdb] GDB: testsuite: TUI: Don't return 0 from top-level (manual)
Thiago Bauermann via Gdb-cvs <[email protected]>
| Newsgroups | gmane.comp.gdb.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d2ba1892183c395722312df8d778dedadb0e7d91 commit d2ba1892183c395722312df8d778dedadb0e7d91 Author: Thiago Jung Bauermann <[email protected]> Date: Wed Apr 29 20:04:27 2026 -0300 GDB: testsuite: TUI: Don't return 0 from top-level (manual) 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 <[email protected]> Diff: --- gdb/testsuite/gdb.tui/basic.exp | 2 +- gdb/testsuite/gdb.tui/resize-2.exp | 2 +- gdb/testsuite/gdb.tui/tui-disasm-long-lines.exp | 2 +- gdb/testsuite/gdb.tui/tui-mode-switch.exp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gdb/testsuite/gdb.tui/basic.exp b/gdb/testsuite/gdb.tui/basic.exp index 26264082a16..45fdf3a7a76 100644 --- a/gdb/testsuite/gdb.tui/basic.exp +++ b/gdb/testsuite/gdb.tui/basic.exp @@ -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. diff --git a/gdb/testsuite/gdb.tui/resize-2.exp b/gdb/testsuite/gdb.tui/resize-2.exp index 69578cc4a22..b7eb38f3c04 100644 --- a/gdb/testsuite/gdb.tui/resize-2.exp +++ b/gdb/testsuite/gdb.tui/resize-2.exp @@ -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. diff --git a/gdb/testsuite/gdb.tui/tui-disasm-long-lines.exp b/gdb/testsuite/gdb.tui/tui-disasm-long-lines.exp index 58add6dc329..00f52c7cdfb 100644 --- a/gdb/testsuite/gdb.tui/tui-disasm-long-lines.exp +++ b/gdb/testsuite/gdb.tui/tui-disasm-long-lines.exp @@ -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 } } diff --git a/gdb/testsuite/gdb.tui/tui-mode-switch.exp b/gdb/testsuite/gdb.tui/tui-mode-switch.exp index c60596213b8..250b557125e 100644 --- a/gdb/testsuite/gdb.tui/tui-mode-switch.exp +++ b/gdb/testsuite/gdb.tui/tui-mode-switch.exp @@ -15,7 +15,7 @@ Term::with_term $term { if {![Term::prepare_for_tui]} { unsupported "TUI not supported" - return 0 + return } # Generate prompt.