X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-lseek.sh;h=47237b5f2405aeb35544ddae1f0c3e4049e7fb9c;hb=712cf13da004184edfac5a715118fe77bd257f1c;hp=576008c42b866fee3f064e5729716d28ff2de870;hpb=0a10438b84061e197967d2d591f0e8fca864dcb7;p=gnulib.git diff --git a/tests/test-lseek.sh b/tests/test-lseek.sh index 576008c42..47237b5f2 100755 --- a/tests/test-lseek.sh +++ b/tests/test-lseek.sh @@ -8,8 +8,8 @@ tmpfiles=t-lseek.tmp ./test-lseek${EXEEXT} 0 < "$srcdir/test-lseek.sh" > t-lseek.tmp || exit 1 # pipes -: | { ./test-lseek${EXEEXT} 1; echo $? > t-lseek.tmp; } | : -test "x`cat t-lseek.tmp`" = x0 || exit 1 +echo hi | { ./test-lseek${EXEEXT} 1; echo $? > t-lseek.tmp; cat > /dev/null; } | cat +test "`cat t-lseek.tmp`" = "0" || exit 1 # closed descriptors ./test-lseek${EXEEXT} 2 <&- >&- || exit 1