projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
strtoumax: fix another typo in previous commit
[gnulib.git]
/
tests
/
test-lseek.sh
diff --git
a/tests/test-lseek.sh
b/tests/test-lseek.sh
index
e84c2bb
..
47237b5
100755
(executable)
--- a/
tests/test-lseek.sh
+++ b/
tests/test-lseek.sh
@@
-8,7
+8,8
@@
tmpfiles=t-lseek.tmp
./test-lseek${EXEEXT} 0 < "$srcdir/test-lseek.sh" > t-lseek.tmp || exit 1
# pipes
./test-lseek${EXEEXT} 0 < "$srcdir/test-lseek.sh" > t-lseek.tmp || exit 1
# pipes
-echo hi | ./test-lseek${EXEEXT} 1 | cat || 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
# closed descriptors
./test-lseek${EXEEXT} 2 <&- >&- || exit 1