Last change
on this file 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:
702 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 | # Check that grep skips reading in some cases.
|
---|
3 |
|
---|
4 | . "${srcdir=.}/init.sh"; path_prepend_ ../src
|
---|
5 |
|
---|
6 | fail=0
|
---|
7 |
|
---|
8 | echo /dev/null >exp || framework_failure_
|
---|
9 |
|
---|
10 | for opts in '-m0 y' '-f /dev/null' '-v ""'; do
|
---|
11 | for matcher in '' -E -F; do
|
---|
12 | for file in /dev/null no-such-file; do
|
---|
13 | eval returns_ 1 grep $opts $matcher no-such-file > out || fail=1
|
---|
14 | compare /dev/null out || fail=1
|
---|
15 | eval returns_ 1 grep -l $opts $matcher /dev/null > out || fail=1
|
---|
16 | compare /dev/null out || fail=1
|
---|
17 | done
|
---|
18 | eval returns_ 1 grep -L $opts $matcher /dev/null > out || fail=1
|
---|
19 | compare exp out || fail=1
|
---|
20 | eval returns_ 1 grep -L $opts $matcher /dev/null > /dev/null || fail=1
|
---|
21 | done
|
---|
22 | done
|
---|
23 |
|
---|
24 |
|
---|
25 | Exit $fail
|
---|
Note:
See
TracBrowser
for help on using the repository browser.