|
Last change
on this file was 2595, checked in by bird, 12 years ago |
|
gnu grep version 2.12 (grep-2.12.tar.xz, md5sum=8d2f0346d08b13c18afb81f0e8aa1e2f)
|
|
File size:
441 bytes
|
| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 | # Ensure that --mmap is ignored
|
|---|
| 3 | . "${srcdir=.}/init.sh"; path_prepend_ ../src
|
|---|
| 4 |
|
|---|
| 5 | echo a > in || framework_failure_
|
|---|
| 6 | fail=0
|
|---|
| 7 |
|
|---|
| 8 | echo grep: the --mmap option has been a no-op since 2010 > exp
|
|---|
| 9 |
|
|---|
| 10 | grep --mmap a in > out 2> err || fail=1
|
|---|
| 11 | compare out in || fail=1
|
|---|
| 12 | compare exp err || fail=1
|
|---|
| 13 |
|
|---|
| 14 | grep --mmap b in > out 2>err
|
|---|
| 15 | # Expect no match and no output.
|
|---|
| 16 | test $? = 1 || fail=1
|
|---|
| 17 | compare /dev/null out || fail=1
|
|---|
| 18 | compare exp err || fail=1
|
|---|
| 19 |
|
|---|
| 20 | Exit $fail
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.