Source: quilt
Version: 0.65-2
Severity: important
Tags: ftbfs

While testing my patch for #913226 I found that quilt intermittently
failed to build from source with this test failure:

[faildiff.test]
[1] $ mkdir patches -- ok
[3] $ quilt new test.diff -- ok
[6] $ cat > test.txt -- ok
[8] $ quilt add test.txt -- ok
[13] $ chmod -r test.txt -- ok
[15] $ quilt refresh -- ok
[18] $ echo 1 -- ok
[21] $ chmod +r test.txt -- ok
[25] $ printf "\\002\\000\\001" > test.bin -- ok
[26] $ quilt add test.bin -- ok
[29] $ printf "\\003\\000\\001" > test.bin -- ok
[30] $ quilt diff -pab --no-index -- failed
Diff failed on file 'test.bin', aborting !~ (Files|Binary files) a/test\.bin 
and b/test\.bin differ
Binary files a/test.bin and b/test.bin differ != Diff failed on file 
'test.bin', aborting
[33] $ echo 1 -- ok
[36] $ quilt refresh -- ok
[38] $ echo 1 -- ok
15 commands (14 passed, 1 failed)

Looking at the test, it seems as though `quilt diff -pab --no-index` emits
one message on stderr, the other message on stdout, and they sometimes
interleave in the opposite order, possibly due to different buffering
(stdout is normally block buffered when writing to a pipe, whereas stderr
is line-buffered).

Running it as `quilt diff -pab --no-index 2>&1` might fix this.

    smcv

Reply via email to