1 module PackageTests
.BuildDeps
.GlobalBuildDepsNotAdditive1
.Check
where
3 import Test
.Tasty
.HUnit
4 import PackageTests
.PackageTester
7 import Control
.Exception
8 import Prelude
hiding (catch)
11 suite
:: FilePath -> Assertion
13 let spec
= PackageSpec
("PackageTests" </> "BuildDeps" </> "GlobalBuildDepsNotAdditive1") []
14 result
<- cabal_build spec ghcPath
16 assertEqual
"cabal build should fail - see test-log.txt" False (successful result
)
17 let sb
= "Could not find module `Prelude'"
18 assertBool
("cabal output should be "++show sb
) $
19 sb `isInfixOf` outputText result
21 putStrLn $ "Cabal result was "++show result
22 throwIO
(exc
:: SomeException
)