* gdb.base/watchpoint.exp: Restore previous timeout at end of test.
authorRichard Earnshaw <richard.earnshaw@arm.com>
Wed, 13 Feb 2002 17:40:42 +0000 (17:40 +0000)
committerRichard Earnshaw <richard.earnshaw@arm.com>
Wed, 13 Feb 2002 17:40:42 +0000 (17:40 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/watchpoint.exp

index 4fc75f3..869da44 100644 (file)
@@ -1,3 +1,7 @@
+2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
+
+       * gdb.base/watchpoint.exp: Restore previous timeout at end of test.
+
 2002-02-10  Michael Chastain  <mec@shout.net>
 
        * gdb.base/funcargs.c (localvars_after_alloca): Fix return type.
index f85194c..083d807 100644 (file)
@@ -653,6 +653,7 @@ gdb_exit
 gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
 gdb_load $binfile
+set prev_timeout $timeout
 set timeout 600        
 verbose "Timeout now 600 sec.\n"
 
@@ -798,3 +799,7 @@ if [initialize] then {
       }
     }
 }
+
+# Restore old timeout
+set timeout $prev_timeout
+verbose "Timeout now $timeout sec.\n"