summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-01-03 22:10:32 +0100
committerJim Meyering <meyering@redhat.com>2012-01-03 22:10:32 +0100
commitaab59eb87d7fade0ca8a0f444f222284eb28694f (patch)
tree2a3b274408188df62c13c7ed3061a4b51ce124bc
parent39f04f2768cd6c2a21631349a17597a9fc4de418 (diff)
downloadgrep-aab59eb87d7fade0ca8a0f444f222284eb28694f.tar.gz
tests: adjust test to match code, now that --mmap writes to stderr
* tests/ignore-mmap: Separate stdout and stderr; test both.
-rwxr-xr-xtests/ignore-mmap8
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