VirtualBox

source: kBuild/vendor/grep/2.12/tests/ignore-mmap

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
5echo a > in || framework_failure_
6fail=0
7
8echo grep: the --mmap option has been a no-op since 2010 > exp
9
10grep --mmap a in > out 2> err || fail=1
11compare out in || fail=1
12compare exp err || fail=1
13
14grep --mmap b in > out 2>err
15# Expect no match and no output.
16test $? = 1 || fail=1
17compare /dev/null out || fail=1
18compare exp err || fail=1
19
20Exit $fail
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette