summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.threads
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2001-05-24 19:54:41 +0000
committerMichael Snyder <msnyder@specifix.com>2001-05-24 19:54:41 +0000
commitc36ed9d79ca6313e051ac2d38964137de0ce6020 (patch)
tree372647c1878b19931c38f14385b18782246f766d /gdb/testsuite/gdb.threads
parent2d556600dd9b596b73fc9e1ab59147e892816ba9 (diff)
downloadgdb-c36ed9d79ca6313e051ac2d38964137de0ce6020.tar.gz
2001-05-24 Michael Snyder <msnyder@redhat.com>
* gdb.threads/pthreads.exp (all_threads_running): Add an explicit test for (full_coverage == 0). This makes the test run faster, and prevents dejagnu getting out of step.
Diffstat (limited to 'gdb/testsuite/gdb.threads')
-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 88db0f0ed3e..e58de79324e 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