From: Ian Jackson Date: Sun, 8 Dec 2019 12:46:11 +0000 (+0000) Subject: stest: Honour SECNET_STEST_TIMEOUT_MUL to multiply timeouts X-Git-Tag: v0.6.0~27 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=78687c877d9e88653c6f82b57a552f4befc91c83;p=secnet.git stest: Honour SECNET_STEST_TIMEOUT_MUL to multiply timeouts This is handy, for example, when running under valgrind. Signed-off-by: Ian Jackson --- diff --git a/stest/common.tcl b/stest/common.tcl index 5895568..f480948 100644 --- a/stest/common.tcl +++ b/stest/common.tcl @@ -350,6 +350,8 @@ proc udp-relay {data src sock args} { } proc adj-after {timeout args} { + upvar #0 env(SECNET_STEST_TIMEOUT_MUL) mul + if {[info exists mul]} { set timeout [expr {$timeout * $mul}] } eval after $timeout $args }