[7/8,gdb/testsuite] Fix timeout in gdb.tui/empty.exp

Message ID 20230413140827.19412-8-tdevries@suse.de
State Committed
Headers
Series Fix timeouts in TUI tests |

Commit Message

Tom de Vries April 13, 2023, 2:08 p.m. UTC
  In test-case gdb.tui/empty.exp we run into:
...
WARNING: timeout in accept_gdb_output
PASS: gdb.tui/empty.exp: src: 90x40: box 1
...

We timeout here in Term::resize:
...
	# Due to the strange column resizing behavior, and because we
	# don't care about this intermediate resize, we don't check
	# the size here.
	wait_for "@@ resize done $_resize_count"
...
because the string we're trying to match is split over two lines:
...
25 -----------------------------------------------------------------------------+No
26 ne No process In:                                               L??   PC: ?? @@
27 resize done 0, size = 79x40
28 (gdb)
...

Fix this by dropping the "@@ " prefix.

Tested on x86_64-linux.
---
 gdb/testsuite/lib/tuiterm.exp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/gdb/testsuite/lib/tuiterm.exp b/gdb/testsuite/lib/tuiterm.exp
index fa703fc060e..d8a99d2798a 100644
--- a/gdb/testsuite/lib/tuiterm.exp
+++ b/gdb/testsuite/lib/tuiterm.exp
@@ -1124,8 +1124,8 @@  namespace eval Term {
 	stty rows $_rows < $::gdb_tty_name
 	# Due to the strange column resizing behavior, and because we
 	# don't care about this intermediate resize, we don't check
-	# the size here.
-	wait_for "@@ resize done $_resize_count"
+	# the size and the "@@ " prefix here.
+	wait_for "resize done $_resize_count"
 	incr _resize_count
 	# Somehow the number of columns transmitted to gdb is one less
 	# than what we request from expect.  We hide this weird