]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Fix gdb.tui/pr30056.exp arrow right test
authorTom de Vries <tdevries@suse.de>
Tue, 30 Sep 2025 13:36:05 +0000 (15:36 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 30 Sep 2025 13:36:05 +0000 (15:36 +0200)
On aarch64-linux, I run into:
...
FAIL: gdb.tui/pr30056.exp: arrow right
...
because while the intention is to observe the change from:
...
|       20 main (void)                  |
...
into:
...
|       20 ain (void)                   |
...
we're actually looking at another line.

Fix this by looking at the contents of the entire source window.

Tested on aarch64-linux and x86_64-linux.

PR testsuite/33506
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33506

gdb/testsuite/gdb.tui/pr30056.exp

index 3cf5e906b7a026ed6f8fa4d3e19aa962946c8545..22278e35662de7833d8d7bf72e9cec67b212a6d3 100644 (file)
@@ -56,7 +56,7 @@ gdb_assert { [Term::wait_for_region_contents 0 $Term::_cur_row $Term::_cols 1 \
 # Send arrow-right.
 send_gdb "\033\[C"
 # Wait for arrow-right effect.
-gdb_assert { [Term::wait_for_region_contents 1 5 78 1 \
+gdb_assert { [Term::wait_for_region_contents 1 1 78 13 \
                  [string_to_regexp " ain (void)"]] } "arrow right"
 
 # Send ^C.