(cabal check) Add "No internal name clash" test
[cabal.git] / cabal-testsuite / PackageTests / Regression / T4025 / setup.test.hs
blob0ec5d06814791dd135c24621f67c17b3864d7913
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
4 -- support RPATH.
5 main = setupAndCabalTest $ do
6 skipIfWindows
7 osx <- isOSX
8 ghc <- isGhcVersion ">= 8.10.7"
9 expectBrokenIf (osx && ghc) 7610 $ do -- see also issue #7988
10 setup "configure" ["--enable-executable-dynamic"]
11 setup "build" []
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" []