GNU bug report logs - #34519
Test "colors" fails on Debian/ppc64el

Previous Next

Package: diffutils;

Reported by: Santiago Vila <sanvila <at> unex.es>

Date: Mon, 18 Feb 2019 01:03:01 UTC

Severity: normal

Merged with 25402, 36488

Full log


View this message in rfc822 format

From: Santiago Vila <sanvila <at> unex.es>
To: 34519 <at> debbugs.gnu.org
Subject: bug#34519: Test "colors" fails on Debian/ppc64el
Date: Mon, 18 Feb 2019 01:57:09 +0100 (CET)
Hello.

I've just uploaded diffutils 3.7 for Debian unstable (hopefully to be
part of Debian 10, since it contains only small fixes).

But there is a problem: The build in the ppc64el autobuilder failed:

https://buildd.debian.org/status/logs.php?pkg=diffutils&ver=1%3A3.7-1&arch=ppc64el

In tests/colors there was a race condition which I tried to fix
by adding a "sleep 1", like this:

mkfifo fifo
printf '%1000000s-a' > a
printf '%1000000s-b' > b
head -c 10 < fifo > /dev/null &
sleep 1
diff --color=always ---presume-output-tty a b > fifo
test $? = 141 || fail=1

It is possible that the "head" command takes (sometimes) more than one second to
complete on ppc64el?

Are there any other places in the test where a race condition could be
happening?

Thanks.




This bug report was last modified 3 years and 289 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.