Skip to content

Commit f8b2afc

Browse files
committed
GHC 9.10 compat in tests: disable tests regressing due to #9940
1 parent 8d1cf1b commit f8b2afc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cabal-install/tests/IntegrationTests2.hs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,9 +1438,11 @@ testSetupScriptStyles config reportSubCase = do
14381438

14391439
let isOSX (Platform _ OSX) = True
14401440
isOSX _ = False
1441+
compilerVer = compilerVersion (pkgConfigCompiler sharedConfig)
14411442
-- Skip the Custom tests when the shipped Cabal library is buggy
1442-
unless (isOSX (pkgConfigPlatform sharedConfig)
1443-
&& compilerVersion (pkgConfigCompiler sharedConfig) < mkVersion [7,10]) $ do
1443+
unless ((isOSX (pkgConfigPlatform sharedConfig) && (compilerVer < mkVersion [7,10]))
1444+
-- 9.10 ships Cabal 3.12.0.0 affected by #9940
1445+
|| (mkVersion [9,10] <= compilerVer && compilerVer < mkVersion [9,11])) $ do
14441446

14451447
(plan1, res1) <- executePlan plan0
14461448
pkg1 <- expectPackageInstalled plan1 res1 pkgidA

0 commit comments

Comments
 (0)