blob: c69276e27057d6d208adf92aacbd138cba593e8b [file] [log] [blame]
djm@openbsd.orgdd369322017-04-30 23:34:55 +00001# $OpenBSD: broken-pipe.sh,v 1.6 2017/04/30 23:34:55 djm Exp $
Damien Miller38cd4352002-05-01 13:17:33 +10002# Placed in the Public Domain.
3
4tid="broken pipe test"
5
djm@openbsd.orgdd369322017-04-30 23:34:55 +00006for 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
Damien Miller38cd4352002-05-01 13:17:33 +100012done