sh: Reduce unnecessary testsuite failures with other shells.

This commit is contained in:
Jilles Tjoelker 2010-08-16 22:23:19 +00:00
parent 471bb09914
commit 7ba25e6e69
4 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
# $FreeBSD$
set -e
trap 'echo Broken pipe -- test failed' pipe
trap 'echo Broken pipe -- test failed' PIPE
P=${TMPDIR:-/tmp}
cd $P

View File

@ -1,6 +1,6 @@
# $FreeBSD$
set -e
trap 'echo Broken pipe -- test failed' pipe
trap 'echo Broken pipe -- test failed' PIPE
P=${TMPDIR:-/tmp}
cd $P

View File

@ -1,5 +1,5 @@
# $FreeBSD$
trap ': $((brokenpipe+=1))' pipe
trap ': $((brokenpipe+=1))' PIPE
P=${TMPDIR:-/tmp}
cd $P
@ -17,7 +17,7 @@ if [ $brokenpipe -ne 0 ]; then
rc=3
fi
wait
echo dummy >&4
echo dummy >&4 2>/dev/null
if [ $brokenpipe -eq 1 ]; then
: ${rc:=0}
fi

View File

@ -1,5 +1,5 @@
# $FreeBSD$
trap ': $((brokenpipe+=1))' pipe
trap ': $((brokenpipe+=1))' PIPE
P=${TMPDIR:-/tmp}
cd $P
@ -17,7 +17,7 @@ mkfifo fifo1 fifo2
exec 4>fifo2
exec 3>fifo1
echo dummy >&4
echo dummy >&4 2>/dev/null
if [ $brokenpipe -eq 1 ]; then
: ${rc:=0}
fi