annotate tests/test-lseek.sh @ 12735:77cea116e541
build: guarantee AS_VAR_IF
The recent addition of warn-on-use.m4 was broken with older autoconf.
author |
Simon Josefsson <simon@josefsson.org> |
date |
Tue, 12 Jan 2010 19:44:11 +0100 |
parents |
30d389dd4713 |
children |
700012efeb01 |
rev |
line source |
8872
|
1 #!/bin/sh |
|
2 |
8877
|
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 |
8872
|
17 exit 0 |