From: Jim Meyering Date: Sat, 12 Dec 2009 13:44:46 +0000 (+0100) Subject: tests: tail-without-inotify: avoid spurious test failure X-Git-Tag: v8.3~55 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d9ba88597409c6c3f89c2ab173369cc1ec26507d;p=thirdparty%2Fcoreutils.git tests: tail-without-inotify: avoid spurious test failure * tests/tail-2/wait: Account for the possibility that the kernel lacks inotify support. Reported by Chris Clayton. --- diff --git a/THANKS b/THANKS index 3b03587d65..acdfd6b2f5 100644 --- a/THANKS +++ b/THANKS @@ -102,6 +102,7 @@ Carlos Canau Carlos.Canau@relay.puug.pt Charles Karney karney@pppl.gov Charles Randall crandall@matchlogic.com Chip Salzenberg chip@valinux.com +Chris Clayton chris2553@googlemail.com Chris Faylor cgf@cygnus.com Chris J. Bednar cjb@AdvancedDataSolutions.com Chris Lesniewski ctl@mit.edu diff --git a/tests/tail-2/wait b/tests/tail-2/wait index 9392ade233..bdc115ae99 100755 --- a/tests/tail-2/wait +++ b/tests/tail-2/wait @@ -54,7 +54,8 @@ for inotify in ---disable-inotify ''; do timeout 1 tail -s0.1 -F $inotify not_here test $? = 124 || fail=1 - + grep -v 'tail: inotify cannot be used, reverting to polling:' tail.err > x + mv x tail.err test -s tail.err && fail=1 :>tail.err