2001-05-24 Michael Snyder <msnyder@redhat.com>
authorMichael Snyder <msnyder@vmware.com>
Thu, 24 May 2001 19:54:41 +0000 (19:54 +0000)
committerMichael Snyder <msnyder@vmware.com>
Thu, 24 May 2001 19:54:41 +0000 (19:54 +0000)
* 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.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/pthreads.exp

index 12214b0caf0349ea4d4103e8b61ac32487440a21..58da1b5b4944d3b7a0c1bd75ff3e25c3f2603a06 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2001-05-23  Kevin Buettner  <kevinb@redhat.com>
 
        * gdb.base/finish.exp (finish_void): Revise pattern for
index 88db0f0ed3e2d45dbdd93f86ce603942e94c9e77..e58de79324e61e08440453ea19d5529e6142ae45 100644 (file)
@@ -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