This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] tweak for pthreads.exp test
- To: gdb-patches at sources dot redhat dot com
- Subject: [PATCH] tweak for pthreads.exp test
- From: Michael Snyder <msnyder at cygnus dot com>
- Date: Thu, 24 May 2001 12:59:52 -0700
- Organization: Red Hat
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.
Index: pthreads.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.threads/pthreads.exp,v
retrieving revision 1.3
diff -c -3 -p -r1.3 pthreads.exp
*** pthreads.exp 2001/02/15 05:32:12 1.3
--- pthreads.exp 2001/05/24 19:51:01
*************** proc all_threads_running {} {
*** 170,176 ****
send_gdb "p common_routine::full_coverage\n"
gdb_expect {
! -re ".*= 1\r\n$gdb_prompt $" {}
default {
fail "some threads didn't run"
return 0
--- 170,180 ----
send_gdb "p common_routine::full_coverage\n"
gdb_expect {
! -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