projects
/
gnulib.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
open-safer.c: avoid 'signed and unsigned in conditional...' warning
[gnulib.git]
/
tests
/
test-lseek.sh
1
#!/bin/sh
2
3
tmpfiles=
4
trap 'rm -fr $tmpfiles' 1 2 3 15
5
6
tmpfiles=t-lseek.tmp
7
# seekable files
8
./test-lseek${EXEEXT} 0 < "$srcdir/test-lseek.sh" > t-lseek.tmp || exit 1
9
10
# pipes
11
echo hi | ./test-lseek${EXEEXT} 1 | cat || exit 1
12
13
# closed descriptors
14
./test-lseek${EXEEXT} 2 <&- >&- || exit 1
15
16
rm -rf $tmpfiles
17
exit 0