diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 09921e02968..fc1c537c76b 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2019-08-01 Tom de Vries + + PR testsuite/24863 + * gdb.threads/fork-plus-threads.exp: Fix check-run1 timeout by + calling exp_continue for new thread and thread exited messages. + 2019-08-01 Tom de Vries PR testsuite/24863 diff --git a/gdb/testsuite/gdb.threads/fork-plus-threads.exp b/gdb/testsuite/gdb.threads/fork-plus-threads.exp index d4d0f182320..340a8df266c 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 }