Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Fix test failures when TUI is not enabled
@ 2024-08-09  8:47 Bernd Edlinger
  2024-08-09  9:28 ` Tom de Vries
  0 siblings, 1 reply; 7+ messages in thread
From: Bernd Edlinger @ 2024-08-09  8:47 UTC (permalink / raw)
  To: gdb-patches

This adds some missing require allow_tui_tests.

When tui is not enabled those test cases do typically
fail, but most of them only after a long time-out:

FAIL: gdb.base/new-ui.exp: do_test_invalid_args: new-ui with tui
FAIL: gdb.base/wrap-line.exp: term=ansi: width-hard-coded: wrap (timeout)
FAIL: gdb.base/wrap-line.exp: term=ansi: width-auto-detected: wrap (timeout)
FAIL: gdb.base/wrap-line.exp: term=xterm: width-hard-coded: $gdb_width == $readline_width
FAIL: gdb.base/wrap-line.exp: term=xterm: width-hard-coded: wrap (timeout)
FAIL: gdb.base/wrap-line.exp: term=xterm: width-auto-detected: $gdb_width == $readline_width
FAIL: gdb.base/wrap-line.exp: term=xterm: width-auto-detected: wrap (timeout)
FAIL: gdb.tui/wrap-line.exp: width-hard-coded: cli: wrap
FAIL: gdb.tui/wrap-line.exp: width-hard-coded: cli: prompt after wrap
FAIL: gdb.tui/wrap-line.exp: width-auto-detected: cli: wrap
FAIL: gdb.tui/wrap-line.exp: width-auto-detected: cli: prompt after wrap
---
 gdb/testsuite/gdb.base/new-ui.exp    | 8 +++++---
 gdb/testsuite/gdb.base/wrap-line.exp | 1 +
 gdb/testsuite/gdb.tui/wrap-line.exp  | 1 +
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/gdb/testsuite/gdb.base/new-ui.exp b/gdb/testsuite/gdb.base/new-ui.exp
index 2dfcbf7e108..a56d213e527 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] {
diff --git a/gdb/testsuite/gdb.base/wrap-line.exp b/gdb/testsuite/gdb.base/wrap-line.exp
index b0931a3bbb8..1a1b47410ee 100644
--- a/gdb/testsuite/gdb.base/wrap-line.exp
+++ b/gdb/testsuite/gdb.base/wrap-line.exp
@@ -18,6 +18,7 @@
 # We set TERM on build, but we need to set it on host.  That only works if
 # build == host.
 require {!is_remote host}
+require allow_tui_tests
 
 # Test both ansi (no auto-wrap) and xterm (auto-wrap).
 set terms {ansi xterm}
diff --git a/gdb/testsuite/gdb.tui/wrap-line.exp b/gdb/testsuite/gdb.tui/wrap-line.exp
index 9cddcf14995..48a04ebc330 100644
--- a/gdb/testsuite/gdb.tui/wrap-line.exp
+++ b/gdb/testsuite/gdb.tui/wrap-line.exp
@@ -17,6 +17,7 @@
 
 # Required for tuiterm.
 require {!is_remote host}
+require allow_tui_tests
 
 tuiterm_env
 
-- 
2.39.2


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-08-12  9:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-09  8:47 [PATCH] Fix test failures when TUI is not enabled Bernd Edlinger
2024-08-09  9:28 ` Tom de Vries
2024-08-09  9:48   ` Bernd Edlinger
2024-08-09 11:11     ` Bernd Edlinger
2024-08-09 11:17     ` Tom de Vries
2024-08-12  4:54       ` Bernd Edlinger
2024-08-12  9:43         ` [PATCH] Fix test failures when tui " Bernd Edlinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox