aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2024-08-09 10:39:56 +0200
committerBernd Edlinger <bernd.edlinger@hotmail.de>2024-08-09 12:33:15 +0200
commit9d13bd76f84db860e0541dbdddf54e650019fbad (patch)
tree30d7ae750ef6505b5d67d655a01bb5cff499689d /gdb
parent49e607f511c1fab82a0116990a72d1915c74bb4a (diff)
downloadgdb-9d13bd76f84db860e0541dbdddf54e650019fbad.zip
gdb-9d13bd76f84db860e0541dbdddf54e650019fbad.tar.gz
gdb-9d13bd76f84db860e0541dbdddf54e650019fbad.tar.bz2
Fix test failure when TUI is not enabled
This adds a missing allow_tui_tests guard. When tui is not enabled this test case does typically fail: FAIL: gdb.base/new-ui.exp: do_test_invalid_args: new-ui with tui Approved-By: Tom de Vries <tdevries@suse.de>
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.base/new-ui.exp8
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.base/new-ui.exp b/gdb/testsuite/gdb.base/new-ui.exp
index 2dfcbf7..a56d213 100644
--- a/gdb/testsuite/gdb.base/new-ui.exp
+++ b/gdb/testsuite/gdb.base/new-ui.exp
@@ -184,9 +184,11 @@ proc_with_prefix do_test_invalid_args {} {
"new-ui with bad interpreter name"
# Test that the TUI cannot be used for a new UI.
- gdb_test "new-ui tui $extra_tty_name" \
- "interpreter 'tui' cannot be used with a new UI" \
- "new-ui with tui"
+ if [allow_tui_tests] {
+ gdb_test "new-ui tui $extra_tty_name" \
+ "interpreter 'tui' cannot be used with a new UI" \
+ "new-ui with tui"
+ }
# Test that we can continue working normally.
if ![runto_main] {