FYI, noticed a rare false-positive failure.
Fixed it like this:

>From 0e6c96e68cc38954c6d77e2c9361708a383b2cea Mon Sep 17 00:00:00 2001
From: Jim Meyering <[email protected]>
Date: Sat, 23 Apr 2011 23:54:11 +0200
Subject: [PATCH] tests: tail-2/pipe-f2: avoid false-positive failure

Otherwise, this would fail (albeit rarely) on a "make -j24 check" run.
* tests/tail-2/pipe-f2: Increase timeout from 1 second to 10,
to avoid false positive failure.
---
 tests/tail-2/pipe-f2 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/tail-2/pipe-f2 b/tests/tail-2/pipe-f2
index c258fee..3422c23 100755
--- a/tests/tail-2/pipe-f2
+++ b/tests/tail-2/pipe-f2
@@ -24,7 +24,7 @@ mkfifo_or_skip_ fifo
 echo 1 > fifo &
 echo 1 > exp || framework_failure

-timeout 1 tail -f fifo > out
+timeout 10 tail -f fifo > out
 test $? = 124 || fail=1

 compare out exp || fail=1
--
1.7.5.rc3.316.gd1ff9

Reply via email to