[gdb/testsuite] Add missing skip_tui_tests
authorTom de Vries <tdevries@suse.de>
Wed, 14 Jul 2021 04:52:44 +0000 (06:52 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 14 Jul 2021 04:52:44 +0000 (06:52 +0200)
commit90d7916ac136613b8118f6429c3436664a700a2e
tree411efcd0b35c82d5ce9d32357005468ca5cecd25
parentfac3b6a2e04f7feeefbf425c3798c34d134752d6
[gdb/testsuite] Add missing skip_tui_tests

When building gdb with --disable-tui, we run into:
...
(gdb) frame apply all -- -^M
Undefined command: "-".  Try "help".^M
(gdb) ERROR: Undefined command "frame apply all -- -".
UNRESOLVED: gdb.base/options.exp: test-frame-apply: frame apply all -- -
...

Fix this by detecting whether tui is supported, and skipping the tui-related
tests otherwise.  Same in some gdb.tui test-cases.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2021-07-13  Tom de Vries  <tdevries@suse.de>

* gdb.base/options.exp: Skip tui-related tests when tui is not
supported.
* gdb.python/tui-window-disabled.exp: Same.
* gdb.python/tui-window.exp: Same.
gdb/testsuite/gdb.base/options.exp
gdb/testsuite/gdb.python/tui-window-disabled.exp
gdb/testsuite/gdb.python/tui-window.exp