This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
PATCH/RFC testsuite: restore timeouts after watchpoint tests
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: gdb-patches at sources dot redhat dot com
- Cc: Richard dot Earnshaw at arm dot com
- Date: Tue, 05 Feb 2002 12:05:24 +0000
- Subject: PATCH/RFC testsuite: restore timeouts after watchpoint tests
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
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"