[gdb/testsuite] Fix gdb.threads/fork-plus-threads.exp timeout with check-run1
[external/binutils.git] / gdb / testsuite / gdb.threads / fork-plus-threads.exp
index d4d0f18..340a8df 100644 (file)
@@ -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
        }