diff options
author | Tom de Vries <tdevries@suse.de> | 2025-08-14 22:19:22 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2025-08-14 22:19:22 +0200 |
commit | 2e917d2873a4ebffb1b7e8a8c043af65dfb5b708 (patch) | |
tree | 9023579fb9a5690abe55098ec34c0cb06806b6e8 | |
parent | 713b99a9398cfe9ba7d96467afc600cf1f756bd2 (diff) | |
download | binutils-2e917d2873a4ebffb1b7e8a8c043af65dfb5b708.zip binutils-2e917d2873a4ebffb1b7e8a8c043af65dfb5b708.tar.gz binutils-2e917d2873a4ebffb1b7e8a8c043af65dfb5b708.tar.bz2 |
[gdb/testsuite] Fix gdb.tui/basic.exp on native-extended-gdbserver
With test-case gdb.tui/basic.exp and target board native-extended-gdbserver I
get:
...
status line: '<reverse:1>extended-r No process (asm) In: L?? PC: ?? <reverse:0>'
FAIL: gdb.tui/basic.exp: status window: reverse
...
because the regexp:
...
gdb_assert { [regexp "^<.*>exec" $status] == 1 } \
...
tries to match:
...
status line: '<reverse:1>exec No process (asm) In: L?? PC: ?? <reverse:0>'
...
Fix this by updating the regexp to allow both exec and extended-r.
Tested on x86_64-linux.
Approved-By: Tom Tromey <tom@tromey.com>
-rw-r--r-- | gdb/testsuite/gdb.tui/basic.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.tui/basic.exp b/gdb/testsuite/gdb.tui/basic.exp index 48b90da..8ecc91a 100644 --- a/gdb/testsuite/gdb.tui/basic.exp +++ b/gdb/testsuite/gdb.tui/basic.exp @@ -116,5 +116,5 @@ verbose -log "status line: '$status'" # The status line uses standout, which may translate to different attributes # depending on the terminal settings. Just check for at least one attribute. -gdb_assert { [regexp "^<.*>exec" $status] == 1 } \ +gdb_assert { [regexp "^<.*>(exec|extended-r)" $status] == 1 } \ "status window: reverse" |