broken-pipe.sh 281 B

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