diff options
author | Tom de Vries <tdevries@suse.de> | 2019-08-01 10:48:11 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2019-08-01 10:48:11 +0200 |
commit | 59bd512b9c54c6fa2bd951cd10a1ca1e6ffb3dcf (patch) | |
tree | 8aa02d0ab18b96af97940904a538e980c3177664 /gdb/testsuite/gdb.threads/fork-plus-threads.exp | |
parent | 2a3ad588e0758bc2c753dfa216c344036e5a22bc (diff) | |
download | gdb-59bd512b9c54c6fa2bd951cd10a1ca1e6ffb3dcf.zip gdb-59bd512b9c54c6fa2bd951cd10a1ca1e6ffb3dcf.tar.gz gdb-59bd512b9c54c6fa2bd951cd10a1ca1e6ffb3dcf.tar.bz2 |
[gdb/testsuite] Fix gdb.threads/fork-plus-threads.exp timeout with check-run1
With gdb.threads/fork-plus-threads.exp and check-run1 we get:
...
FAIL: gdb.threads/fork-plus-threads.exp: detach-on-fork=off: \
inferior 1 exited (timeout)
...
Fix this by calling exp_continue for new thread and thread exited messages.
Tested on x86_64-linux.
gdb/testsuite/ChangeLog:
2019-08-01 Tom de Vries <tdevries@suse.de>
PR testsuite/24863
* gdb.threads/fork-plus-threads.exp: Fix check-run1 timeout by
calling exp_continue for new thread and thread exited messages.
Diffstat (limited to 'gdb/testsuite/gdb.threads/fork-plus-threads.exp')
-rw-r--r-- | gdb/testsuite/gdb.threads/fork-plus-threads.exp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.threads/fork-plus-threads.exp b/gdb/testsuite/gdb.threads/fork-plus-threads.exp index d4d0f18..340a8df 100644 --- a/gdb/testsuite/gdb.threads/fork-plus-threads.exp +++ b/gdb/testsuite/gdb.threads/fork-plus-threads.exp @@ -87,6 +87,14 @@ proc do_test { detach_on_fork } { set saw_thread_stopped 1 exp_continue } + -re "Thread \[^\r\n\]+ exited" { + # Avoid timeout with check-read1 + exp_continue + } + -re "New Thread \[^\r\n\]+" { + # Avoid timeout with check-read1 + exp_continue + } -re "Inferior 1 \(\[^\r\n\]+\) exited normally" { pass $test } |