This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] tweak for pthreads.exp test





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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]