I occasionally run GDB testsuite on sluggish targets that need higher
timeout. The usual remedy I use is to set timeout to higher value in
site.exp.
This does not help with gdb.fortran/huge.exp, gdb.base/huge.exp and
gdb.ada/huge.exp, which set the timeout to fixed value of 30,
regardless of whether the timeout has been increased or not, causing
them to fail on some of my machines.
This commit fixes the problem by using with_timeout_factor.
Approved-By: Tom Tromey <tom@tromey.com>
foreach_with_prefix varname {Arr Packed_Arr} {
clean_restart ${testfile}
- save_vars { timeout } {
- set timeout 30
-
+ with_timeout_factor 3 {
if {![runto "foo"]} {
return
}
# Start with a fresh gdb.
clean_restart $testfile
-save_vars { timeout } {
- set timeout 30
-
+with_timeout_factor 3 {
if {![runto_main]} {
return -1
}
# Start with a fresh gdb.
clean_restart ${::testfile}
-save_vars { timeout } {
- set timeout 30
-
+with_timeout_factor 3 {
if {![fortran_runto_main]} {
return -1
}