On 03/03/2026 06:56, Collin Funk wrote:
Hi Bruno,

Bruno Haible via GNU coreutils General Discussion <[email protected]>
writes:

The CI reports failures of the test tests/misc/warning-errors in two
circumstances:


* On CentOS 7:

FAIL: tests/misc/warning-errors
===============================

[...]
+ returns_ 1 /bin/sh -c 'env cksum --debug /dev/null'
4294967295 0 /dev/null
+ fail=1

It looks like the CI machine doesn't have any optimized CRC32
implementations to use. Therefore, 'cksum --debug' won't write to
standard error and will return 0.

On a powerpc64 machine, I got the same error along with a similar one
for 'wc -l', which is only optimized on some x86 and arm machines.

I pushed the attached patch to adjust the expected exit status based on
values from config.h.

That is correct but too coupled.
I pushed an adjustment to simple skip the check
if a command does not output to standard error.

cheers,
Padraig

Reply via email to