aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.compile/compile.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.compile/compile.exp')
-rw-r--r--gdb/testsuite/gdb.compile/compile.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.compile/compile.exp b/gdb/testsuite/gdb.compile/compile.exp
index 07276bd..dd46a5f 100644
--- a/gdb/testsuite/gdb.compile/compile.exp
+++ b/gdb/testsuite/gdb.compile/compile.exp
@@ -131,8 +131,8 @@ gdb_test_no_output "compile code globalvar = static_local"
gdb_test "p globalvar" " = 77000" "check static_local"
gdb_test_no_output "compile code static int staticvar = 5; intptr = &staticvar" \
- "keep jit in memory"
-gdb_test "p *intptr" " = 5" "expect 5"
+ "do not keep jit in memory"
+gdb_test "p *intptr" "Cannot access memory at address 0x\[0-9a-f\]+" "expect no 5"
gdb_test "compile code func_doesnotexist ();" "warning: Could not find symbol \"func_doesnotexist\" for .*"