public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] [gdb/testsuite] Fix gdb.python/tui-window.exp for remote host
@ 2023-03-13 16:20 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2023-03-13 16:20 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1cdf05cd2d1d8be9a655f941b4e4037170ae394f

commit 1cdf05cd2d1d8be9a655f941b4e4037170ae394f
Author: Tom de Vries <tdevries@suse.de>
Date:   Mon Mar 13 17:20:09 2023 +0100

    [gdb/testsuite] Fix gdb.python/tui-window.exp for remote host
    
    When running gdb.python/tui-window.exp with host board
    local-remote-host-notty and target board native-gdbserver, I get:
    ...
    UNSUPPORTED: gdb.python/tui-window.exp: TUI not supported
    FAIL: gdb.python/tui-window.exp: test title
    ...
    
    Fix this by adding the missing return after the unsupported.
    
    Tested on x86_64-linux.

Diff:
---
 gdb/testsuite/gdb.python/tui-window.exp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gdb/testsuite/gdb.python/tui-window.exp b/gdb/testsuite/gdb.python/tui-window.exp
index af2a866e78b..9b5d17c35d4 100644
--- a/gdb/testsuite/gdb.python/tui-window.exp
+++ b/gdb/testsuite/gdb.python/tui-window.exp
@@ -40,6 +40,7 @@ gdb_test_no_output "tui new-layout fail fail 1 status 0 cmd 1"
 
 if {![Term::enter_tui]} {
     unsupported "TUI not supported"
+    return
 }
 
 Term::command "layout test"

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-13 16:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-13 16:20 [binutils-gdb] [gdb/testsuite] Fix gdb.python/tui-window.exp for remote host Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).