1 # $OpenBSD: stderr-data.sh,v 1.2 2002/03/27 22:39:52 markus Exp $
2 # Placed in the Public Domain.
4 tid
="stderr data transfer"
12 verbose
"test $tid: proto $p ($n)"
13 ${SSH} $n -$p -F $OBJ/ssh_proxy otherhost \
14 exec sh
-c \'"exec > /dev/null; sleep 3; cat ${DATA} 1>&2 $s"\' \
18 fail
"ssh failed with exit code $r"
20 cmp ${DATA} ${COPY} || fail
"stderr corrupt"
23 ${SSH} $n -$p -F $OBJ/ssh_proxy otherhost \
24 exec sh
-c \'"echo a; exec > /dev/null; sleep 3; cat ${DATA} 1>&2 $s"\' \
25 > /dev
/null
2> ${COPY}
28 fail
"ssh failed with exit code $r"
30 cmp ${DATA} ${COPY} || fail
"stderr corrupt"