]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: tail-without-inotify: avoid spurious test failure
authorJim Meyering <meyering@redhat.com>
Sat, 12 Dec 2009 13:44:46 +0000 (14:44 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 12 Dec 2009 16:40:42 +0000 (17:40 +0100)
* tests/tail-2/wait: Account for the possibility that the kernel
lacks inotify support.  Reported by Chris Clayton.

THANKS
tests/tail-2/wait

diff --git a/THANKS b/THANKS
index 3b03587d65f36cb481feae1181311d8a64ac87e0..acdfd6b2f59feedb3c73b0d18b5df92fa20dcb9d 100644 (file)
--- 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
index 9392ade2331cdbde9e70f0bdbcb21e4ed85e95e9..bdc115ae99c5a3dbeb9fabcc7d015cf1914bbc3e 100755 (executable)
@@ -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