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]
Other format: [Raw text]

PATCH/RFC testsuite: restore timeouts after watchpoint tests



I noticed that my test machine was spending huge amounts of time doing 
nothing while running the gdb testsuite.  It turned out that some of the 
timeouts had been raised to 10 minutes per test.  That's probably sensible 
at the point when the change is made (testing the watchpoint code), but 
for subsequent tests that's much longer than required.

This patch simply restores the old timeouts after the watchpoint test has 
run.

Ok to install?

	* gdb.base/watchpoint.exp: Restore old timeouts on completion.


Index: gdb.base/watchpoint.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/watchpoint.exp,v
retrieving revision 1.4
diff -p -r1.4 watchpoint.exp
*** watchpoint.exp	2001/03/06 08:21:51	1.4
--- watchpoint.exp	2002/02/05 12:00:52
*************** gdb_exit
*** 653,658 ****
--- 653,659 ----
  gdb_start
  gdb_reinitialize_dir $srcdir/$subdir
  gdb_load $binfile
+ set prev_timeout $timeout
  set timeout 600	
  verbose "Timeout now 600 sec.\n"
  
*************** if [initialize] then {
*** 798,800 ****
--- 799,805 ----
        }
      }
  }
+ 
+ # Restore old timeout
+ set timeout $prev_timeout
+ verbose "Timeout now $timeout sec.\n"

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