bug-coreutils
[Top][All Lists]
Advanced

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

Coreutils 5.2.1: race in testsuite


From: Andreas Schwab
Subject: Coreutils 5.2.1: race in testsuite
Date: Mon, 22 Mar 2004 14:24:40 +0100
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux)

This fixes a race in the tail-2/assert test: the file foo may be removed
before the tail process had the chance to open it.

Andreas.

2004-03-22  Andreas Schwab  <address@hidden>

        * tests/tail-2/assert: Avoid race between tail and rm.

--- tests/tail-2/assert
+++ tests/tail-2/assert
@@ -30,6 +30,8 @@
 tail_pid=$!
 # Arrange for the tail process to die after 12 seconds.
 (sleep 12; kill $tail_pid) &
+# Wait for tail to start
+sleep 1
 rm -f foo
 echo sleeping for 7 seconds...
 sleep 7

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

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