1 import Test
.Cabal
.Prelude
2 -- Test that we don't accidentally add the inplace directory to
3 -- an executable RPATH. Don't test on Windows, which doesn't
5 main
= setupAndCabalTest
$ do
8 ghc
<- isGhcVersion
">= 8.10.7"
9 expectBrokenIf
(osx
&& ghc
) 7610 $ do -- see also issue #7988
10 setup
"configure" ["--enable-executable-dynamic"]
12 -- This should fail as it we should NOT be able to find the
13 -- dynamic library for the internal library (since we didn't
14 -- install it). If we incorrectly encoded our local dist
15 -- dir in the RPATH, this will succeed.
16 recordMode DoNotRecord
. fails
$ runExe
"exe" []