1104862Sru# $OpenBSD: broken-pipe.sh,v 1.4 2002/03/15 13:08:56 markus Exp $ 2104862Sru# Placed in the Public Domain. 3104862Sru 4104862Srutid="broken pipe test" 5104862Sru 6104862Srufor p in 1 2; do 7104862Sru trace "protocol $p" 8104862Sru for i in 1 2 3 4; do 9104862Sru ${SSH} -$p -F $OBJ/ssh_config_config nexthost echo $i 2> /dev/null | true 10104862Sru r=$? 11104862Sru if [ $r -ne 0 ]; then 12104862Sru fail "broken pipe returns $r for protocol $p" 13104862Sru fi 14104862Sru done 15104862Srudone 16104862Sru