diff options
author | Tom de Vries <tdevries@suse.de> | 2023-04-25 08:33:57 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2023-04-25 08:33:57 +0200 |
commit | 538edc49dc610b987f8929434f883c8bbc211be8 (patch) | |
tree | fd42aa740b3bbecf20c55e266a6b852dfcc2db4b | |
parent | 9d00d9eac6020be1be09adcc14deb72ddac485fe (diff) | |
download | gdb-538edc49dc610b987f8929434f883c8bbc211be8.zip gdb-538edc49dc610b987f8929434f883c8bbc211be8.tar.gz gdb-538edc49dc610b987f8929434f883c8bbc211be8.tar.bz2 |
[gdb/testsuite] Fix timeout in gdb.tui/empty.exp
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.
-rw-r--r-- | gdb/testsuite/lib/tuiterm.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/lib/tuiterm.exp b/gdb/testsuite/lib/tuiterm.exp index fa703fc..d8a99d2 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 |