aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.threads/pthreads.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.threads/pthreads.exp')
-rw-r--r--gdb/testsuite/gdb.threads/pthreads.exp6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.threads/pthreads.exp b/gdb/testsuite/gdb.threads/pthreads.exp
index 88db0f0..e58de79 100644
--- a/gdb/testsuite/gdb.threads/pthreads.exp
+++ b/gdb/testsuite/gdb.threads/pthreads.exp
@@ -170,7 +170,11 @@ proc all_threads_running {} {
send_gdb "p common_routine::full_coverage\n"
gdb_expect {
- -re ".*= 1\r\n$gdb_prompt $" {}
+ -re ".* = 1.*$gdb_prompt $" {}
+ -re ".* = 0.*$gdb_prompt $" {
+ fail "some threads didn't run"
+ return 0
+ }
default {
fail "some threads didn't run"
return 0