diff options
author | Jim Meyering <meyering@redhat.com> | 2012-04-12 20:11:24 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-04-13 10:52:39 +0200 |
commit | 92449ffdc47f1e7dd01fbc110eb094977dafb66a (patch) | |
tree | 2262f750ace2d3d5159b47fbdd19cb0c4bc2502d /tests | |
parent | b00d1eee17148143c5a9187e6d4b68569a02cf24 (diff) | |
download | grep-92449ffdc47f1e7dd01fbc110eb094977dafb66a.tar.gz |
tests: avoid spurious failure of the symlink test
* tests/symlink: Ignore spurious "Binary file d matches" on
systems for which reading from a directory actually succeeds.
Reported by Bruno Haible and Nelson Beebe.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/symlink | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/symlink b/tests/symlink index 012d8f8f..071160bc 100755 --- a/tests/symlink +++ b/tests/symlink @@ -57,7 +57,13 @@ do esac printf "$exp" >exp || framework_failure_ - LC_ALL=C sort grepout >out || fail=1 + + LC_ALL=C sort grepout >out-t || fail=1 + + # Ignore "Binary file d matches" on systems for which + # reading from a directory actually succeeds. + grep -v Binary out-t > out; case $? in 0|1) ;; *) fail=1;; esac + compare exp out || fail=1 done done |