There is a bug in the test suite that leads to failed tests. I tried [r13049].
Steps to reproduce (after compilation):
$ cd support/regressionremove .SILENT in Makefile (so we get useful output).$ make clean # just in case.make test-port PORT=host -j10 |& grep timeoutWhat should happen? tests on host should pass.
What happens? tests randomly fail. output can be random, but similar to
[..]
support/regression $ make test-port PORT=host -j10 |& grep timeout
gcc -pipe -ggdb -g -O2 ../../../support/regression/fwk/lib/timeout.c -o
gen/timeout
gcc -pipe -ggdb -g -O2 ../../../support/regression/fwk/lib/timeout.c -o
gen/timeout
gcc -pipe -ggdb -g -O2 ../../../support/regression/fwk/lib/timeout.c -o
gen/timeout
gcc -pipe -ggdb -g -O2 ../../../support/regression/fwk/lib/timeout.c -o
gen/timeout
gcc -pipe -ggdb -g -O2 ../../../support/regression/fwk/lib/timeout.c -o
gen/timeout
gcc -pipe -ggdb -g -O2 ../../../support/regression/fwk/lib/timeout.c -o
gen/timeout
gen/timeout 1 gen/host/abs/abs.bin > gen/host/abs/abs.out
/bin/sh: 1: gen/timeout: Permission denied
gen/timeout 1 gen/host/absolute/absolute_mem___xdata.bin >
gen/host/absolute/absolute_mem___xdata.out
/bin/sh: 1: gen/timeout: Permission denied
gen/timeout 1 gen/host/absolute/absolute_mem___code.bin >
gen/host/absolute/absolute_mem___code.out
/bin/sh: 1: gen/timeout: Permission denied
gen/timeout 1 gen/host/addrspace/addrspace.bin >
gen/host/addrspace/addrspace.out
gen/timeout 1 gen/host/and_survive/and_survive.bin >
gen/host/and_survive/and_survive.out
gen/timeout 1 gen/host/assert/assert.bin > gen/host/assert/assert.out
/bin/sh: 1: gen/timeout: Text file busy
[..]
There is more nondeterminism possibly due to broken rules. Some is harder to track down. I will tidy up the rules (hopefully fixing it all) and I intend to add more tests from other compilers soon.
Diff:
Another issue in the test rules: if a test fails to compile, then the summary is broken. I tried r13246.
Is this (not) a bug?
We've had similar bugs before. Two ([bugs:#2824] and [bugs:#2728]) are still open, though I don't know the current state on them.
Related
Bugs:
#2728Bugs: #2824
The timeout race is fixed with the regtest rework. Will open another ticket if anything shows up...