summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2011-10-09 11:25:34 +0100
committerJim Meyering <meyering@redhat.com>2011-10-12 10:56:04 +0200
commit2629776078835e93b854eb171f705b9d4ce5edf8 (patch)
tree82e08b42d0dd0181801d62073103857d6d748e18 /tests
parent3fb0f4aaf2d858dc668dd786286c47e5967eed1b (diff)
downloadcoreutils-2629776078835e93b854eb171f705b9d4ce5edf8.tar.xz
tests: avoid a false failure on systems without inotify
* tests/tail-2/follow-name: Exclude the inotify warning from the comparison. Reported by Bruno Haible.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/tail-2/follow-name4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/tail-2/follow-name b/tests/tail-2/follow-name
index ef9434a60..e34b77964 100755
--- a/tests/tail-2/follow-name
+++ b/tests/tail-2/follow-name
@@ -27,6 +27,10 @@ EOF
timeout 10 tail --follow=name no-such > out 2> err
test $? = 1 || fail=1
+# Remove an inconsequential inotify warning so
+# we can compare against the above error
+sed '/inotify cannot be used/d' err > k && mv k err
+
compare err exp || fail=1
Exit $fail