lseek test: Fix failure on Solaris.
authorBruno Haible <bruno@clisp.org>
Sat, 1 May 2010 11:59:40 +0000 (13:59 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 1 May 2010 11:59:40 +0000 (13:59 +0200)
ChangeLog
tests/test-lseek.sh

index 7023341..19e11dd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-05-01  Bruno Haible  <bruno@clisp.org>
+
+       lseek test: Fix failure on Solaris.
+       * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
+       output.
+
 2010-04-30  Jim Meyering  <meyering@redhat.com>
 
        bootstrap: don't ignore failure to generate po*/Makevars
index 576008c..47237b5 100755 (executable)
@@ -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