diff options
author | Damien Miller <djm@mindrot.org> | 2014-08-01 04:28:31 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2014-08-01 04:28:31 +0200 |
commit | 5b3879fd4b7a4e3d43bab8f40addda39bc1169d0 (patch) | |
tree | e2d915de68e424224dd775fac82b20befeab4a9c /regress/multiplex.sh | |
parent | - (djm) [regress/multiplex.sh] Skip test for non-OpenBSD netcat. We need (diff) | |
download | openssh-5b3879fd4b7a4e3d43bab8f40addda39bc1169d0.tar.xz openssh-5b3879fd4b7a4e3d43bab8f40addda39bc1169d0.zip |
- (djm) [regress/multiplex.sh] Instruct nc not to quit as soon as stdin
is closed; avoid regress failures when stdin is /dev/null
Diffstat (limited to 'regress/multiplex.sh')
-rw-r--r-- | regress/multiplex.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/multiplex.sh b/regress/multiplex.sh index 377281a0c..aaeba7f96 100644 --- a/regress/multiplex.sh +++ b/regress/multiplex.sh @@ -93,7 +93,7 @@ trace "forward over TCP/IP and check result" $NC -l 127.0.0.1 $((${PORT} + 1)) < ${DATA} & netcat_pid=$! ${SSH} -F $OBJ/ssh_config -S $CTL -Oforward -L127.0.0.1:$((${PORT} + 2)):127.0.0.1:$((${PORT} + 1)) otherhost >>$TEST_SSH_LOGFILE 2>&1 -$NC 127.0.0.1 $((${PORT} + 2)) > ${COPY} +$NC -q5 127.0.0.1 $((${PORT} + 2)) > ${COPY} < /dev/null cmp ${DATA} ${COPY} || fail "ssh: corrupted copy of ${DATA}" kill $netcat_pid 2>/dev/null rm -f ${COPY} $OBJ/unix-[123].fwd @@ -103,7 +103,7 @@ $NC -Ul $OBJ/unix-1.fwd < ${DATA} & netcat_pid=$! ${SSH} -F $OBJ/ssh_config -S $CTL -Oforward -L$OBJ/unix-2.fwd:$OBJ/unix-1.fwd otherhost >>$TEST_SSH_LOGFILE 2>&1 ${SSH} -F $OBJ/ssh_config -S $CTL -Oforward -R$OBJ/unix-3.fwd:$OBJ/unix-2.fwd otherhost >>$TEST_SSH_LOGFILE 2>&1 -$NC -U $OBJ/unix-3.fwd > ${COPY} +$NC -q5 -U $OBJ/unix-3.fwd > ${COPY} </dev/null cmp ${DATA} ${COPY} || fail "ssh: corrupted copy of ${DATA}" kill $netcat_pid 2>/dev/null rm -f ${COPY} $OBJ/unix-[123].fwd |