1 # $OpenBSD: stderr-data.sh,v 1.3 2013/05/17 04:29:14 dtucker Exp $
2 # Placed in the Public Domain.
4 tid="stderr data transfer"
8 verbose "test $tid: proto $p ($n)"
9 ${SSH} $n -$p -F $OBJ/ssh_proxy otherhost \
10 exec sh -c \'"exec > /dev/null; sleep 3; cat ${DATA} 1>&2 $s"\' \
14 fail "ssh failed with exit code $r"
16 cmp ${DATA} ${COPY} || fail "stderr corrupt"
19 ${SSH} $n -$p -F $OBJ/ssh_proxy otherhost \
20 exec sh -c \'"echo a; exec > /dev/null; sleep 3; cat ${DATA} 1>&2 $s"\' \
21 > /dev/null 2> ${COPY}
24 fail "ssh failed with exit code $r"
26 cmp ${DATA} ${COPY} || fail "stderr corrupt"