[gdb/testsuite] Fix gdb.python/tui-window-factory.exp for remote host
authorTom de Vries <tdevries@suse.de>
Mon, 13 Mar 2023 16:20:09 +0000 (17:20 +0100)
committerTom de Vries <tdevries@suse.de>
Mon, 13 Mar 2023 16:20:09 +0000 (17:20 +0100)
commit7fee66abd3fd69a0c4dc6c8dcd9aa49eede3864e
treeb1078886067c6bd0cbfe58afd0360514dcd03e1e
parent1cdf05cd2d1d8be9a655f941b4e4037170ae394f
[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.
gdb/testsuite/gdb.python/tui-window-factory.exp