public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [pushed] gdb/testsuite: accept variable number of spaces in gdb.base/jit-reader-simple.exp regex
@ 2023-10-02 18:25 Simon Marchi
  0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2023-10-02 18:25 UTC (permalink / raw)
  To: gdb-patches; +Cc: Simon Marchi

I see this failure:

    FAIL: gdb.base/jit-reader-simple.exp: standalone: change addr: initial run: maint info breakpoints shows jit breakpoint

The jit breakpoint expected by the test is there, it's just that the
number of spaces doesn't match what the test expects, after "jit
events":

    -2      jit events       keep y   0x0000555555555119 <__jit_debug_register_code> inf 1

Fix that by relaxing the regex a bit.

Change-Id: Ia3b04e6d5978399d940fd1a590f95f15275ca7ac
---
 gdb/testsuite/gdb.base/jit-reader-simple.exp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gdb/testsuite/gdb.base/jit-reader-simple.exp b/gdb/testsuite/gdb.base/jit-reader-simple.exp
index dff195648753..8edce13ad97b 100644
--- a/gdb/testsuite/gdb.base/jit-reader-simple.exp
+++ b/gdb/testsuite/gdb.base/jit-reader-simple.exp
@@ -114,7 +114,7 @@ proc jit_test_reread {standalone change_addr} {
 			     "get address of __jit_debug_descriptor"]
 
 	gdb_test "maint info breakpoints" \
-	    "jit events     keep y   $hex <__jit_debug_register_code>.*" \
+	    "jit events\[ \]+keep y   $hex <__jit_debug_register_code>.*" \
 	    "maint info breakpoints shows jit breakpoint"
     }
 
@@ -149,7 +149,7 @@ proc jit_test_reread {standalone change_addr} {
 	# This used to crash in the JIT-in-shared-library case:
 	# https://sourceware.org/bugzilla/show_bug.cgi?id=11094
 	gdb_test "maint info breakpoints" \
-	    "jit events     keep y   $hex <__jit_debug_register_code>.*" \
+	    "jit events\[ \]+keep y   $hex <__jit_debug_register_code>.*" \
 	    "maint info breakpoints shows jit breakpoint"
     }
 

base-commit: 4afdefc3375c81dd4780508b11bb2ade895d4053
-- 
2.42.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-10-02 18:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-02 18:25 [pushed] gdb/testsuite: accept variable number of spaces in gdb.base/jit-reader-simple.exp regex Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).