[GHC] #14706: T11489 fails if run as root
GHC
ghc-devs at haskell.org
Mon Jan 22 19:08:01 UTC 2018
#14706: T11489 fails if run as root
-------------------------------------+-------------------------------------
Reporter: bgamari | Owner: bgamari
Type: bug | Status: new
Priority: normal | Milestone:
Component: Continuous | Version: 8.5
Integration |
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
The testcase `T11489` tests for #11489 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.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14706>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list