aboutsummaryrefslogtreecommitdiff
path: root/libctf/testsuite/libctf-writable
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2024-07-29 14:05:52 +0200
committerTom de Vries <tdevries@suse.de>2024-07-29 14:05:52 +0200
commit685404e6335fb70dd2e29179829d9119584a303a (patch)
tree60b60a527df2da90dc785d5ff5876df50d5ec6d5 /libctf/testsuite/libctf-writable
parent8896efce13e85054d08f978ae2ae5834055298ed (diff)
downloadbinutils-685404e6335fb70dd2e29179829d9119584a303a.zip
binutils-685404e6335fb70dd2e29179829d9119584a303a.tar.gz
binutils-685404e6335fb70dd2e29179829d9119584a303a.tar.bz2
[gdb/testsuite] Fix gdb.threads/leader-exit-attach.exp with check-read1
With test-case gdb.threads/leader-exit-attach.exp and check-read1, I run into: ... (gdb) attach 18591^M Attaching to program: leader-exit-attach, process 18591^M warning: process 18591 is a zombie - the process has already terminatedKFAIL: $exp: attach (PRMS: gdb/31555) ^M ptrace: Operation not permitted.^M (gdb) FAIL: $exp: get valueof "$_inferior_thread_count" ... The problem is that the gdb_test_multiple in the test-case doesn't consume the prompt in all clauses: ... gdb_test_multiple "attach $testpid" "attach" { -re "Attaching to process $testpid failed.*" { # GNU/Linux gdbserver. Linux ptrace does not let you attach # to zombie threads. setup_kfail "gdb/31555" *-*-linux* fail $gdb_test_name } -re "warning: process $testpid is a zombie - the process has already terminated.*" { # Native GNU/Linux. Linux ptrace does not let you attach to # zombie threads. setup_kfail "gdb/31555" *-*-linux* fail $gdb_test_name } -re "Attaching to program: $escapedbinfile, process $testpid.*$gdb_prompt $" { pass $gdb_test_name set attached 1 } } ... Fix this by using -wrap in the first two clauses. While we're at it, also use -wrap in the third clause. Tested on x86_64-linux.
Diffstat (limited to 'libctf/testsuite/libctf-writable')
0 files changed, 0 insertions, 0 deletions