blob: a75721697a8d034ac1529b7ab4e4aebfe3e03b30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
# Ensure that --mmap is ignored
. "${srcdir=.}/init.sh"; path_prepend_ ../src
echo a > in || framework_failure_
fail=0
grep --mmap a in > out 2>&1 || fail=1
compare out in || fail=1
grep --mmap b in > out 2>&1
# Expect no match and no output.
test $? = 1 || fail=1
compare out /dev/null || fail=1
Exit $fail
|