VirtualBox

source: kBuild/vendor/sed/current/gnulib-tests/test-lseek.sh@ 3613

Last change on this file since 3613 was 3611, checked in by bird, 7 months ago

vendor/sed/current: GNU sed 4.9 (sed-4.9.tar.xz sha256:6e226b732e1cd739464ad6862bd1a1aba42d7982922da7a53519631d24975181)

  • 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