coreutils
[Top][All Lists]
Advanced

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

Re: [PATCH] tests: fix recent regression in tail inotify test


From: Bernhard Voelker
Subject: Re: [PATCH] tests: fix recent regression in tail inotify test
Date: Fri, 06 Feb 2015 03:22:16 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

On 02/05/2015 05:34 PM, Pádraig Brady wrote:
> * tests/tail-2/inotify-rotate.sh (cleanup_fail_): Set fail=1
> so that failures are identified.  Regression in v8.23-63-g111a2b9
> ---
>  tests/tail-2/inotify-rotate.sh | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tests/tail-2/inotify-rotate.sh b/tests/tail-2/inotify-rotate.sh
> index 452a916..556955f 100755
> --- a/tests/tail-2/inotify-rotate.sh
> +++ b/tests/tail-2/inotify-rotate.sh
> @@ -41,6 +41,7 @@ cleanup_fail()
>    cat out
>    warn_ $1
>    kill $pid
> +  fail=1
>  }
>  
>  # Perform at least this many iterations, because on multi-core systems

Good catch! How did you find this one?

BTW: the previous implementation used 'fail_ ...' which
prefixes the error diagnostic with "$ME_: ". Do you think
it's worth to change it, too??

-    warn_ $1
+    warn_ "$ME_: failed test: $@"

Thanks & have a nice day,
Berny



reply via email to

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