Skip to content

Commit

Permalink
GHC 9.10 compat in tests: disable tests regressing due to #9940
Browse files Browse the repository at this point in the history
  • Loading branch information
ulysses4ever committed Apr 30, 2024
1 parent 0f9d410 commit db6c118
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cabal-install/tests/IntegrationTests2.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1436,9 +1436,11 @@ testSetupScriptStyles config reportSubCase = do

let isOSX (Platform _ OSX) = True
isOSX _ = False
compilerVer = compilerVersion (pkgConfigCompiler sharedConfig)
-- Skip the Custom tests when the shipped Cabal library is buggy
unless (isOSX (pkgConfigPlatform sharedConfig)
&& compilerVersion (pkgConfigCompiler sharedConfig) < mkVersion [7,10]) $ do
unless ((isOSX (pkgConfigPlatform sharedConfig) && (compilerVer < mkVersion [7,10]))
-- 9.10 shipw Cabal 3.12.0.0 affected by #9940
|| (mkVersion [9,10] <= compilerVer && compilerVer < mkVersion [9,11])) $ do

(plan1, res1) <- executePlan plan0
pkg1 <- expectPackageInstalled plan1 res1 pkgidA
Expand Down

0 comments on commit db6c118

Please sign in to comment.