diff options
author | Tom de Vries <tdevries@suse.de> | 2022-10-18 15:32:46 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2022-10-18 15:32:46 +0200 |
commit | 21b61fe24223da81fcc35d2dfd3893f01285e2a5 (patch) | |
tree | 70106c015ec186fb0e6019f69ebf7799ac9c7ed8 /gdb/testsuite | |
parent | 95dcf7dff68f1455b3576e291da60a1d949560fb (diff) | |
download | fsf-binutils-gdb-21b61fe24223da81fcc35d2dfd3893f01285e2a5.zip fsf-binutils-gdb-21b61fe24223da81fcc35d2dfd3893f01285e2a5.tar.gz fsf-binutils-gdb-21b61fe24223da81fcc35d2dfd3893f01285e2a5.tar.bz2 |
[gdb/testsuite] Fix gdb.server/no-thread-db.exp with local-remote-host.exp
With test-case gdb.server/no-thread-db.exp and host board local-remote-host.exp
with a tentative fix for PR29697 I run into:
...
(gdb) print foo^M
Cannot find thread-local storage for Thread 29613.29613, executable file \
$HOME/no-thread-db:^M
Remote target failed to process qGetTLSAddr request^M
(gdb) FAIL: gdb.server/no-thread-db.exp: print foo
...
The regexp in the test-case expects the full $binfile pathname, but we have
instead $HOME/no-thread-db.
Fix this by making the regexp less strict.
Tested on x86_64-linux.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/gdb.server/no-thread-db.exp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.server/no-thread-db.exp b/gdb/testsuite/gdb.server/no-thread-db.exp index db61c61..16c1a0d 100644 --- a/gdb/testsuite/gdb.server/no-thread-db.exp +++ b/gdb/testsuite/gdb.server/no-thread-db.exp @@ -59,5 +59,6 @@ gdb_breakpoint ${srcfile}:[gdb_get_line_number "after tls assignment"] gdb_continue_to_breakpoint "after tls assignment" # Printing a tls variable should fail gracefully without a libthread_db. +set re_exec "\[^\r\n\]*[file tail $binfile]" gdb_test "print foo" \ - "Cannot find thread-local storage for Thread \[^,\]+, executable file ${binfile}:\[\r\n\]+Remote target failed to process qGetTLSAddr request" + "Cannot find thread-local storage for Thread \[^,\]+, executable file $re_exec:\[\r\n\]+Remote target failed to process qGetTLSAddr request" |