coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] tests: tail-2/pipe-f2: avoid false-positive failure


From: Jim Meyering
Subject: [PATCH] tests: tail-2/pipe-f2: avoid false-positive failure
Date: Mon, 25 Apr 2011 10:59:45 +0200

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

>From 0e6c96e68cc38954c6d77e2c9361708a383b2cea Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
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

[Prev in Thread] Current Thread [Next in Thread]