diff options
author | Tom de Vries <tdevries@suse.de> | 2022-12-16 15:28:27 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2022-12-16 15:28:27 +0100 |
commit | 832a980e1725a4a7fa527f2dcd92a64d7e68ab0f (patch) | |
tree | e9b093bcdef66a36b675874c42cd25e9bb38febe /opcodes/s390-dis.c | |
parent | c3efaf0afd9d37004c42cdfd3ce0c1bfa979c45e (diff) | |
download | binutils-832a980e1725a4a7fa527f2dcd92a64d7e68ab0f.zip binutils-832a980e1725a4a7fa527f2dcd92a64d7e68ab0f.tar.gz binutils-832a980e1725a4a7fa527f2dcd92a64d7e68ab0f.tar.bz2 |
[gdb/testsuite] Fix race in gdb.threads/detach-step-over.exp
Once in a while I run into:
...
FAIL: gdb.threads/detach-step-over.exp: \
breakpoint-condition-evaluation=host: target-non-stop=off: non-stop=off: \
displaced=off: iter 1: all threads running
...
In can easily reproduce this by doing:
...
# Wait a bit, to give time for the threads to hit the
# breakpoint.
- sleep 1
return true
...
Fix this by counting the running threads in a loop, effectively allowing 10
seconds (instead of 1) for the threads to start running, but only sleeping if
needed.
Reduces total execution time from 1m27s to 56s.
Tested on x86_64-linux.
Diffstat (limited to 'opcodes/s390-dis.c')
0 files changed, 0 insertions, 0 deletions