Debian Codegraph @

gnulib-tests/test-lseek.sh

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2
3 tmpfiles=
4 trap 'rm -fr $tmpfiles' 1 2 3 15
5
6 tmpfiles=t-lseek.tmp
7 # seekable files
8 ${CHECKER} ./test-lseek${EXEEXT} 0 < "$srcdir/test-lseek.sh" > t-lseek.tmp || exit 1
9
10 # pipes
11 echoscip-shell system . . echo. hi | { ${CHECKER} ./test-lseek${EXEEXT} 1; echoscip-shell system . . echo. $? > t-lseek.tmp; catscip-shell system . . cat. > /dev/nullscip-shell filesystem . . `/dev/null`.; } | catscip-shell system . . cat.
12 testscip-shell system . . test. "`catscip-shell system . . cat. t-lseek.tmp`" = "0" || exit 1
13
14 # closed descriptors
15 ${CHECKER} ./test-lseek${EXEEXT} 2 <&- >&- || exit 1
16
17 rmscip-shell system . . rm. -rf $tmpfiles
18 exit 0