Subject: Re: bug#6547: GNU coreutils 8.5 "make check" => tests/test-suite.log 8 of 365 tests failed

From: Pádraig Brady <[email-masked]>
Date: Tue, 06 Jul 2010 09:52:14 +0100

On 06/07/10 09:27, Jost, Martin (NSN - DE/Munich) wrote:
> looks like  the patch is buggy.
> Now I get 
> 13 of 365 tests failed.  (54 tests were not run).

Oops sorry. I should have said the patch was against trunk.
If you're still interested in testing then you can add
the following to tests/test-lib.sh and try again.

cheers,
Pádraig.

retry_delay_()
{
  local test_func=$1
  local init_delay=$2
  local max_n_tries=$3

  local attempt=1
  local num_sleeps=$attempt
  local time_fail
  while test $attempt -le $max_n_tries; do
    local delay=$($AWK -v n=$num_sleeps -v s="$init_delay" \
                  'BEGIN { for (i=0;i<n;i++) t = s" "t; print t }')
    "$test_func" "$delay" && { time_fail=0; break; } || time_fail=1
    attempt=$(expr $attempt + 1)
    num_sleeps=$(expr $num_sleeps '*' 2)
  done
  test "$time_fail" = 0
}