Otherwise it relates to the default spawn id which is stdin. The
effect is that (a) the timeout is for the whole script, not each
expect, and (b) when stdin is /dev/null Tcl gets EOF, closes it, and
then complains
error writing "stdout": bad file number
(which is rather daft).
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
send_log "\r\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
error "aborting due to timeout"
}
-set timeout 15
-
-expect_after timeout timeout-abort
+set timeout 10
proc elog {args} {
set m "[list expect [lindex $args end]]"
spawn -nottycopy \
w3m -config /dev/null -o cgi_bin=$pwd/tests file:///cgi-bin/wrap/Tsuffix
+ expect_after timeout timeout-abort
+
epage {You need to log in}
}