Skip to content

Commit a503345

Browse files
committed
Try to adapt testsuite for 71e797e
1 parent 71e797e commit a503345

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

cabal-testsuite/PackageTests/CustomDep/cabal.test.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import Test.Cabal.Prelude
22
main = cabalTest $ do
33
-- NB: This variant seems to use the bootstrapped Cabal?
44
skipUnless =<< hasCabalForGhc
5+
-- implicit setup-depends conflict with GHC >= 8.2; c.f. #415
6+
skipIf =<< (ghcVersionIs (>= mkVersion [8,2]))
57
-- This test depends heavily on what packages are in the global
68
-- database, don't record the output
79
recordMode DoNotRecord $ do

cabal-testsuite/PackageTests/CustomPlain/cabal.test.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import Test.Cabal.Prelude
22
main = cabalTest $ do
3+
-- implicit setup-depends conflict with GHC >= 8.2; c.f. #415
4+
skipIf =<< (ghcVersionIs (>= mkVersion [8,2]))
35
-- Regression test for #4393
46
recordMode DoNotRecord $ do
57
-- TODO: Hack; see also CustomDep/cabal.test.hs

cabal-testsuite/PackageTests/Regression/T3932/cabal.test.hs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ main = cabalTest $
55
-- extra constraint that setup Cabal must be 1.20. If we don't
66
-- have a choice like this available, the unsatisfied constraint
77
-- won't be reported.
8+
--
9+
-- Due to #415, the lower bound may be even higher based on GHC
10+
-- version
811
withRepo "repo" $ do
912
-- Don't record because output wobbles based on installed database.
1013
recordMode DoNotRecord $ do
1114
fails (cabal' "new-build" []) >>=
12-
assertOutputContains "Setup.hs requires >=1.20"
15+
assertOutputContains "Setup.hs requires >="

0 commit comments

Comments
 (0)