Merge pull request #10662 from haskell/ulysses4ever-prerelease-cleanup-fixup
[cabal.git] / cabal-testsuite / PackageTests / NewFreeze / T9799a / cabal.test.hs
blobb83eb516f8641c538add7f8d773a24dcb27252e1
1 import Test.Cabal.Prelude
2 main = cabalTest $ do
3 withRepo "repo" $ do
4 cabal "v2-freeze" []
5 cwd <- fmap testCurrentDir getTestEnv
6 -- Guarantee that freeze writes scope-qualified constraints, not 'any'
7 -- qualified constraints.
8 expectBroken 9799 $ do
9 assertFileDoesNotContain (cwd </> "cabal.project.freeze") "any.libA"
10 assertFileDoesContain (cwd </> "cabal.project.freeze") "libA == 0.1.0.0"
11 assertFileDoesContain (cwd </> "cabal.project.freeze") "setup.libA == 0.2.0.0"