From 0816a3e5d54d579ffcd88cefeabf734e1a0da4c2 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Thu, 24 May 2001 19:54:41 +0000 Subject: 2001-05-24 Michael Snyder * 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/gdb.threads/pthreads.exp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gdb/testsuite/gdb.threads') 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 -- cgit v1.1