xref: /freebsd/crypto/openssh/regress/broken-pipe.sh (revision 4f52dfbb8d6c4d446500c5b097e3806ec219fbd4)
1#	$OpenBSD: broken-pipe.sh,v 1.6 2017/04/30 23:34:55 djm Exp $
2#	Placed in the Public Domain.
3
4tid="broken pipe test"
5
6for i in 1 2 3 4; do
7	${SSH} -F $OBJ/ssh_config_config nexthost echo $i 2> /dev/null | true
8	r=$?
9	if [ $r -ne 0 ]; then
10		fail "broken pipe returns $r"
11	fi
12done
13