diff options
author | Tom de Vries <tdevries@suse.de> | 2023-03-13 17:20:09 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2023-03-13 17:20:09 +0100 |
commit | 7fee66abd3fd69a0c4dc6c8dcd9aa49eede3864e (patch) | |
tree | b1078886067c6bd0cbfe58afd0360514dcd03e1e | |
parent | 1cdf05cd2d1d8be9a655f941b4e4037170ae394f (diff) | |
download | binutils-7fee66abd3fd69a0c4dc6c8dcd9aa49eede3864e.zip binutils-7fee66abd3fd69a0c4dc6c8dcd9aa49eede3864e.tar.gz binutils-7fee66abd3fd69a0c4dc6c8dcd9aa49eede3864e.tar.bz2 |
[gdb/testsuite] Fix gdb.python/tui-window-factory.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:
...
FAIL: gdb.python/tui-window-factory.exp: msg_2: \
check test_window box (box check: ul corner is l, not +)
...
The problem is that the result of Term::prepare_for_tui is not checked.
Fix this by adding the missing check.
Tested on x86_64-linux.
-rw-r--r-- | gdb/testsuite/gdb.python/tui-window-factory.exp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.python/tui-window-factory.exp b/gdb/testsuite/gdb.python/tui-window-factory.exp index 3e898d0..e3b403b 100644 --- a/gdb/testsuite/gdb.python/tui-window-factory.exp +++ b/gdb/testsuite/gdb.python/tui-window-factory.exp @@ -32,7 +32,10 @@ set pyfile [gdb_remote_download host \ ${srcdir}/${subdir}/${gdb_test_file_name}.py] Term::clean_restart 24 80 -Term::prepare_for_tui +if { ![Term::prepare_for_tui] } { + unsupported "TUI not supported" + return +} gdb_test "source ${pyfile}" "Python script imported" \ "import python scripts" |