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: Paul Eggert <eggert <at> cs.ucla.edu>
To: Santiago Vila <sanvila <at> unex.es>
Cc: 34519 <at> debbugs.gnu.org
Subject: bug#34519: [bug-diffutils] bug#34519: Test "colors" fails on Debian/ppc64el
Date: Tue, 27 Aug 2019 15:06:21 -0700
Santiago Vila wrote:
> 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

Sorry, but what is the race condition, and why would adding 'sleep 1' help? The 
test should work regardless of whether 'diff' starts before 'head' does.

Are fifos broken on your system somehow?

Can you use 'strace -f' to see what syscalls are going wrong in 'head' and/or 
'diff'?




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.