gdb/testsuite: accept variable number of spaces in gdb.base/jit-reader-simple.exp...
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 2 Oct 2023 18:22:26 +0000 (14:22 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 2 Oct 2023 18:24:47 +0000 (14:24 -0400)
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

index dff195648753ea5e9f0ef72036cab71bec6b2e39..8edce13ad97b39b2180857e9137d20346211e4cf 100644 (file)
@@ -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"
     }