]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix test failure when TUI is not enabled
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 9 Aug 2024 08:39:56 +0000 (10:39 +0200)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 9 Aug 2024 10:33:15 +0000 (12:33 +0200)
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>
gdb/testsuite/gdb.base/new-ui.exp

index 2dfcbf7e108cca44603b47e1186c6e9bb31e9720..a56d213e527d7ddadec00ecfbf79260dc66dce99 100644 (file)
@@ -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] {