diff options
-rwxr-xr-x | tests/ignore-mmap | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/ignore-mmap b/tests/ignore-mmap index a6d30caf..8c40868e 100755 --- a/tests/ignore-mmap +++ b/tests/ignore-mmap @@ -5,12 +5,16 @@ echo a > in || framework_failure_ fail=0 -grep --mmap a in > out 2>&1 || fail=1 +echo grep: the --mmap option has been a no-op since 2010 > exp + +grep --mmap a in > out 2> err || fail=1 compare out in || fail=1 +compare exp err || fail=1 -grep --mmap b in > out 2>&1 +grep --mmap b in > out 2>err # Expect no match and no output. test $? = 1 || fail=1 compare /dev/null out || fail=1 +compare exp err || fail=1 Exit $fail |