Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] [gdb/testsuite] Fix gdb.tui/resize-3.exp on ppc64-linux
@ 2025-10-17 13:39 Tom de Vries
  2025-10-17 14:14 ` Tom Tromey
  0 siblings, 1 reply; 6+ messages in thread
From: Tom de Vries @ 2025-10-17 13:39 UTC (permalink / raw)
  To: gdb-patches

On ppc64-linux, with test-case gdb.tui/resize-3.exp I run into:
...
FAIL: gdb.tui/resize-3.exp: after resize: Assembler for foo is shown
...
because the disassembly window shows:
...
    0 +----------------------------------------------------------------------+
    1 |   0x10000093c <.foo>                      std     r31,-8(r1)         |
    2 |   0x100000940 <.foo+4>                    stdu    r1,-64(r1)         |
    3 |   0x100000944 <.foo+8>                    mr      r31,r1             |
    4 |B+>0x100000948 <.foo+12>                   li      r9,0               |
...
and we grep for "<foo".

Fix this by updating the regexp.

Tested on ppc64-linux and x86_64-linux.
---
 gdb/testsuite/gdb.tui/resize-3.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/testsuite/gdb.tui/resize-3.exp b/gdb/testsuite/gdb.tui/resize-3.exp
index fcda407c9fd..5a3d50aef48 100644
--- a/gdb/testsuite/gdb.tui/resize-3.exp
+++ b/gdb/testsuite/gdb.tui/resize-3.exp
@@ -69,5 +69,5 @@ with_test_prefix "after resize" {
 	"No Assembly message is not displayed" \
 	"No Assembly Available"
     Term::check_contents "Assembler for foo is shown" \
-	"$hex\\s+<foo"
+	[string cat $hex {\s+} "<" ([string_to_regexp .])? "foo"]
 }

base-commit: 0e4fd060ee7244d00c76f0d4815063dfcc9877f1
-- 
2.51.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-10-20 10:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-17 13:39 [PATCH] [gdb/testsuite] Fix gdb.tui/resize-3.exp on ppc64-linux Tom de Vries
2025-10-17 14:14 ` Tom Tromey
2025-10-18  8:21   ` Tom de Vries
2025-10-18  9:11     ` Tom de Vries
2025-10-18 17:19     ` Tom Tromey
2025-10-20 10:08       ` Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox