From: Pádraig Brady
Date: Sun, 9 Oct 2011 10:25:34 +0000 (+0100) Subject: tests: avoid a false failure on systems without inotify X-Git-Tag: v8.14~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2629776078835e93b854eb171f705b9d4ce5edf8;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/tests/tail-2/follow-name b/tests/tail-2/follow-name index ef9434a60c..e34b77964f 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