[binutils-gdb] [gdb/testsuite] Fix timeout in gdb.tui/wrap-line.exp
Tom de Vries
vries@sourceware.org
Fri Sep 26 23:21:07 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=fccaf2d2978affaa04e9fe6ecf5d1e995a686767
commit fccaf2d2978affaa04e9fe6ecf5d1e995a686767
Author: Tom de Vries <tdevries@suse.de>
Date: Sat Sep 27 01:20:56 2025 +0200
[gdb/testsuite] Fix timeout in gdb.tui/wrap-line.exp
When running test-case gdb.tui/wrap-line.exp on msys2-ucrt64, I run into a
timeout here:
...
set test "startup prompt"
gdb_test_multiple "" $test {
-re "^$gdb_prompt $" {
pass "$test"
}
}
...
due to running into "^[[6n(gdb) ".
Fix this by allowing this, similar to how this was fixed in default_gdb_start by
commit 7e1964f9c61 ("[gdb/testsuite] Set TERM to dumb by default").
Tested on x86_64-linux and msys2-ucrt64.
Approved-By: Tom Tromey <tom@tromey.com>
Diff:
---
gdb/testsuite/gdb.tui/wrap-line.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/testsuite/gdb.tui/wrap-line.exp b/gdb/testsuite/gdb.tui/wrap-line.exp
index a1ba706654a..03c57b0c1f7 100644
--- a/gdb/testsuite/gdb.tui/wrap-line.exp
+++ b/gdb/testsuite/gdb.tui/wrap-line.exp
@@ -172,7 +172,7 @@ with_test_prefix width-auto-detected {
set test "startup prompt"
gdb_test_multiple "" $test {
- -re "^$gdb_prompt $" {
+ -re "^(\033\\\[6n)?$gdb_prompt $" {
pass "$test"
}
}
More information about the Gdb-cvs
mailing list