blob: a6d30caf5942bab7f30ec3f8ed3060a997f2f771 (
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 /dev/null out || fail=1
Exit $fail
|