Skip to content
Snippets Groups Projects
Commit 7438ad11 authored by Herbert Valerio Riedel's avatar Herbert Valerio Riedel :man_dancing:
Browse files

Fixup T4154 testcase

(cherry picked from commit 86de9cc9)
parent c92b7150
No related branches found
No related tags found
No related merge requests found
......@@ -4,5 +4,4 @@ Downloading the latest package list from test-local-repo
Resolving dependencies...
Build profile: -w ghc-<GHCVER> -O1
In order, the following would be built:
- Cabal-99999 (lib) (requires download & build)
- time-99999 (lib:time) (first run)
......@@ -9,7 +9,9 @@ main = cabalTest $ withRepo "repo" $ do
-- Temporarily disabled recording here because output is not stable
recordMode DoNotRecord $ do
-- Constraining all uses of 'time' results in a cyclic dependency
-- between 'Cabal' and the new 'time'.
r <- fails $ cabal' "new-build" ["time", "--constraint=any.time==99999", "--dry-run"]
assertOutputContains "cyclic dependencies; conflict set: time:setup.Cabal, time:setup.time" r
r <- fails $ cabal' "new-build" ["time", "--constraint=any.time==99999", "--constraint=setup.Cabal installed", "--dry-run"]
-- Constraining all uses of 'time' originally resulted in a cyclic dependency
-- between 'Cabal' and the new 'time':
-- assertOutputContains "cyclic dependencies; conflict set: time:setup.Cabal, time:setup.time" r
-- However, this doesn't work anymore, so instead we more directly look for:
assertOutputContains "time:setup.time~>time-99999 (conflict: time:setup.Cabal" r
......@@ -4,7 +4,7 @@ cabal-version: >=1.8
build-type: Custom
custom-setup
setup-depends: base, Cabal == 99999
setup-depends: base, Cabal
library
build-depends: base
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment