Bugzilla – Bug 1185520
coreutils testsuite fails on 1-core VM
Last modified: 2021-05-05 06:42:44 UTC
Created attachment 848936 [details] build log While working on reproducible builds, I found that coreutils testsuite (randomly?) fails to pass on 1-core VMs. Steps to Reproduce: osc co openSUSE:Factory/coreutils && cd $_ osc build --noservice -M testsuite -j1 --vm-type=kvm standard Actual Results: [ 560s] FAIL tests/ls/stat-free-color.sh (exit status: 1) [ 561s] Testsuite summary for GNU coreutils 8.32 [ 561s] ============================================================================ [ 561s] # TOTAL: 591 [ 561s] # PASS: 534 [ 561s] # SKIP: 56 [ 561s] # XFAIL: 0 [ 561s] # FAIL: 1 [ 561s] # XPASS: 0 [ 561s] # ERROR: 0 note: probably also affects all enterprise codestreams
Would you mind to re-test with SR#889683, please?
FWIW: the false positive was not really related to 1 or more CPUs, but because ls(1) now calls stat(STDOUT_FILENO, ...) before writing to stdout, and the ls invocation to create the reference count didn't output anything; hence the difference to the expected outcome. Discussed at: https://lists.gnu.org/r/coreutils/2021-04/msg00050.html Upstream patch: https://git.sv.gnu.org/cgit/coreutils.git/commit/?id=b7091093bb
The update seems to have fixed the tests. Indeed, I could also reproduce the issue without -j1 (before the patch).
Thanks for confirming.