T11489 fails if run as root
The testcase T11489 tests for #11489 (closed) by creating a .prof file, removing its write bit, and trying to run a program with profiling enabled. Usually the program would fail with an error message as the RTS can't open the .prof file for writing. However, when run as root the test succeeds.
"What madman would compile GHC as root?" you ask? Well, CircleCI runs builds as root by default. It seems like running builds under Docker is one way around this, although this seems like a pretty large hammer just to eliminate a single test failure.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 8.5 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Continuous Integration |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |