summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-04-12 20:11:24 +0200
committerJim Meyering <meyering@redhat.com>2012-04-13 10:52:39 +0200
commit92449ffdc47f1e7dd01fbc110eb094977dafb66a (patch)
tree2262f750ace2d3d5159b47fbdd19cb0c4bc2502d /tests
parentb00d1eee17148143c5a9187e6d4b68569a02cf24 (diff)
downloadgrep-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-xtests/symlink8
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