VirtualBox

source: kBuild/vendor/grep/3.7/gnulib-tests/test-lseek.sh@ 3529

Last change on this file since 3529 was 3529, checked in by bird, 3 years ago

Imported grep 3.7 from grep-3.7.tar.gz (sha256: c22b0cf2d4f6bbe599c902387e8058990e1eee99aef333a203829e5fd3dbb342), applying minimal auto-props.

  • Property svn:executable set to *
File size: 424 bytes
Line 
1#!/bin/sh
2
3tmpfiles=
4trap 'rm -fr $tmpfiles' 1 2 3 15
5
6tmpfiles=t-lseek.tmp
7# seekable files
8${CHECKER} ./test-lseek${EXEEXT} 0 < "$srcdir/test-lseek.sh" > t-lseek.tmp || exit 1
9
10# pipes
11echo hi | { ${CHECKER} ./test-lseek${EXEEXT} 1; echo $? > t-lseek.tmp; cat > /dev/null; } | cat
12test "`cat t-lseek.tmp`" = "0" || exit 1
13
14# closed descriptors
15${CHECKER} ./test-lseek${EXEEXT} 2 <&- >&- || exit 1
16
17rm -rf $tmpfiles
18exit 0
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette