aboutsummaryrefslogtreecommitdiff
path: root/config/gdb-comm.exp
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@embecosm.com>2023-12-12 13:09:54 +0000
committerJacob Bachmeyer <jcb@gnu.org>2023-12-12 20:45:59 -0600
commitfbdcba42176e9f76c1d9e898347c91abd8b86df1 (patch)
tree08a0d3359eef3c680584a2cd6a00aa2e7f70c1a9 /config/gdb-comm.exp
parent34d6720bb9371ad885f8e642a77d869929db15d6 (diff)
downloaddejagnu-fbdcba42176e9f76c1d9e898347c91abd8b86df1.zip
dejagnu-fbdcba42176e9f76c1d9e898347c91abd8b86df1.tar.gz
dejagnu-fbdcba42176e9f76c1d9e898347c91abd8b86df1.tar.bz2
Use `test_timeout' consistently across protocols
The `test_timeout' global parameter was added with commit 73db65f53795, however for the `unix' protocol only and then only in the local case. Update the remote case of the `unix' protocol, other protocols that use various timeout sources, and the `qemu' board to take any `test_timeout' setting into account as appropriate. Amend the manual accordingly. * baseboards/qemu.exp (qemu_load): Respect global `test_timeout' setting. * config/gdb-comm.exp (gdb_comm_load): Likewise. * config/gdb_stub.exp (gdb_stub_load): Likewise. * config/sim.exp (sim_load): Likewise. * config/unix.exp (unix_load): Likewise, in the remote case. * doc/dejagnu.texi (Local configuration file): Update accordingly.
Diffstat (limited to 'config/gdb-comm.exp')
-rw-r--r--config/gdb-comm.exp5
1 files changed, 3 insertions, 2 deletions
diff --git a/config/gdb-comm.exp b/config/gdb-comm.exp
index 909bb69..21893dc 100644
--- a/config/gdb-comm.exp
+++ b/config/gdb-comm.exp
@@ -253,7 +253,7 @@ proc gdb_comm_load { dest prog args } {
global GDB
global GDBFLAGS
global gdb_prompt
- global timeout
+ global test_timeout
set argnames { "command-line arguments" "input file" "output file" }
for { set x 0 } { $x < [llength $args] } { incr x } {
@@ -267,9 +267,10 @@ proc gdb_comm_load { dest prog args } {
return [list "untested" ""]
}
- # FIXME: The value 300 below should be a parameter.
if {[board_info $dest exists testcase_timeout]} {
set testcase_timeout [board_info $dest testcase_timeout]
+ } elseif {[info exists test_timeout]} {
+ set testcase_timeout $test_timeout
} else {
set testcase_timeout 300
}