]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Drop address from test name in gdb.arch/amd64-shadow-stack-corefile.exp
authorTom de Vries <tdevries@suse.de>
Mon, 10 Nov 2025 14:27:30 +0000 (15:27 +0100)
committerTom de Vries <tdevries@suse.de>
Mon, 10 Nov 2025 14:27:30 +0000 (15:27 +0100)
I ran the testsuite twice, compare the two sum files, and got for test-case
gdb.arch/amd64-shadow-stack-corefile.exp:
...
3077c3077
< PASS: $exp: OS corefile: pl3_ssp contents from core file 0x7f7a38
3fffe0
---
> PASS: $exp: OS corefile: pl3_ssp contents from core file 0x7f179e
...

Fix this by dropping the address from the test name.

Tested on x86_64-linux.

gdb/testsuite/gdb.arch/amd64-shadow-stack-corefile.exp

index 82d68da6764acb2ff28ef87b9600f41eb82f20cd..ca476a0a02c38a9eab9221234e5db99ca474fd67 100644 (file)
@@ -38,7 +38,7 @@ proc check_core_file {core_filename saved_pl3_ssp} {
 
     # Check the value of ssp in the core file.
     gdb_test "print/x \$pl3_ssp" "\\$\[0-9\]+ = $saved_pl3_ssp" \
-       "pl3_ssp contents from core file $saved_pl3_ssp"
+       "pl3_ssp contents from core file"
 }
 
 save_vars { ::env(GLIBC_TUNABLES) } {