diff options
author | Michael Snyder <msnyder@vmware.com> | 2001-05-24 19:54:41 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2001-05-24 19:54:41 +0000 |
commit | 0816a3e5d54d579ffcd88cefeabf734e1a0da4c2 (patch) | |
tree | dc21beb2ad6a4a47aa065295607a8aa5245efab7 | |
parent | 2caa35cb88a53794723bf0d6126ff6dae112753f (diff) | |
download | gdb-0816a3e5d54d579ffcd88cefeabf734e1a0da4c2.zip gdb-0816a3e5d54d579ffcd88cefeabf734e1a0da4c2.tar.gz gdb-0816a3e5d54d579ffcd88cefeabf734e1a0da4c2.tar.bz2 |
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.
-rw-r--r-- | gdb/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.threads/pthreads.exp | 6 |
2 files changed, 11 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 12214b0..58da1b5 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -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 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 |