bug-coreutils
[Top][All Lists]
Advanced

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

Re: Coreutils 5.2.1: race in testsuite


From: Jim Meyering
Subject: Re: Coreutils 5.2.1: race in testsuite
Date: Tue, 23 Mar 2004 19:31:01 +0100

Andreas Schwab <address@hidden> wrote:
> 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

Thank you for the patch.
What was the symptom of the failure?
Can you reproduce the problem easily?

Even if I delay the start of the tail command by two seconds,
it doesn't make the test fail.




reply via email to

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