aboutsummaryrefslogtreecommitdiff
path: root/baseboards
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 /baseboards
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 'baseboards')
-rw-r--r--baseboards/qemu.exp9
1 files changed, 8 insertions, 1 deletions
diff --git a/baseboards/qemu.exp b/baseboards/qemu.exp
index 193a759..0cd96bf 100644
--- a/baseboards/qemu.exp
+++ b/baseboards/qemu.exp
@@ -199,7 +199,14 @@ set_board_info rcp_prog /usr/bin/scp
proc qemu_load { dest prog args } {
global qemu
global timeout
- set ret [local_exec "$qemu $prog" "" "" $timeout]
+ global test_timeout
+
+ set wait_timeout $timeout
+ if {[info exists test_timeout]} {
+ set wait_timeout $test_timeout
+ }
+
+ set ret [local_exec "$qemu $prog" "" "" $wait_timeout]
if { [array size ret] == 0 } {
return "pass"