T7881 fails with hpc
I noticed that T7881 fails with hpc
way. I investigated a bit and I noticed that if I compile the program without hpc it emits 3 warnings (which is intended):
[t-jastol@cam-05-unx : /5playpen/t-jastol/ghc-validate2/testsuite/tests/numeric/should_compile] '/5playpen/t-jastol/ghc-validate2/inplace/bin/ghc-stage2' -fforce-recomp -c T7881.hs -O
T7881.hs:7:6: Warning: Enumeration is empty
T7881.hs:25:6: Warning: Enumeration is empty
T7881.hs:31:6: Warning: Enumeration is empty
But if I add -fhpc
on the command line the warnings disappear:
[t-jastol@cam-05-unx : /5playpen/t-jastol/ghc-validate2/testsuite/tests/numeric/should_compile] '/5playpen/t-jastol/ghc-validate2/inplace/bin/ghc-stage2' -fforce-recomp -c T7881.hs -O -fhpc
[t-jastol@cam-05-unx : /5playpen/t-jastol/ghc-validate2/testsuite/tests/numeric/should_compile]
That's the reason why this test fails (mismatch of stderr). I don't know whether this is expected behaviour of hpc or not. If the former, then test configuration should be fixed, if the latter then hpc itself should be fixed.
Trac metadata
Trac field | Value |
---|---|
Version | 7.7 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Code Coverage |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |