chiark / gitweb /
Testing: Move expect_before timeout to right place
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 29 Oct 2015 01:57:00 +0000 (01:57 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 1 Nov 2015 21:08:39 +0000 (21:08 +0000)
commita2d1d2c00b41c075fd61c899c8884c2012817343
tree021be69dc43d4282eaeceb6fc7efe3f33e5c3a9f
parent3cc0a947e3f03308a30aedb0a0ff1bbaae1e5d41
Testing: Move expect_before timeout to right place

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>
tests/autotest