import Test.Cabal.Prelude
-- Test that we don't accidentally add the inplace directory to
-- an executable RPATH.
main = setupAndCabalTest $ do
    skipIfNoSharedLibraries
    expectBrokenIfOSXAndGhc ">= 8.10.7" 7610 $ do -- see also issue #7988
      setup "configure" ["--enable-executable-dynamic"]
      setup "build" []
      -- This should fail as it we should NOT be able to find the
      -- dynamic library for the internal library (since we didn't
      -- install it).  If we incorrectly encoded our local dist
      -- dir in the RPATH, this will succeed.
      recordMode DoNotRecord . fails $ runExe "exe" []
