From: Ian Jackson Date: Fri, 11 Oct 2019 19:07:41 +0000 (+0100) Subject: test: Fix names of stunt pipes X-Git-Tag: v0.5.0~129 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=secnet.git;a=commitdiff_plain;h=149cf6646086d141aae1aec0b20c112ba7eea2c5 test: Fix names of stunt pipes "t" = transmit, ie packets written by us and read by secnet "r" = receive, ie packets writeen by secnet and read by us secnet is the network; we are the host. Signed-off-by: Ian Jackson --- diff --git a/test/invoke b/test/invoke index 69aa0da..2f8835e 100755 --- a/test/invoke +++ b/test/invoke @@ -34,14 +34,14 @@ proc mkconf {which} { set netlinkfh($which.$tr) [set fh [open $pipefp.$tr r+]] fconfigure $fh -blocking 0 -buffering none -translation binary } - fileevent $netlinkfh($which.t) readable [list netlink-readable $which] + fileevent $netlinkfh($which.r) readable [list netlink-readable $which] set fakeuf test/$which.fake-userv set fakeuh [open $fakeuf w 0755] puts $fakeuh "#!/bin/sh set -e -cat >$pipefp.t & -exec 3<>$pipefp.r -exec <$pipefp.r +cat >$pipefp.r & +exec 3<>$pipefp.t +exec <$pipefp.t exec 3<&- exec cat "