From 538edc49dc610b987f8929434f883c8bbc211be8 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Tue, 25 Apr 2023 08:33:57 +0200 Subject: [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. --- gdb/testsuite/lib/tuiterm.exp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/testsuite/lib/tuiterm.exp') 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 -- cgit v1.1