Skip to content

Commit

Permalink
GHC 9.10 compat in tests: disable tests regressing due to haskell#9940
Browse files Browse the repository at this point in the history
  • Loading branch information
ulysses4ever committed Apr 30, 2024
1 parent 0f9d410 commit 0643006
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cabal-install/tests/IntegrationTests2.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1436,9 +1436,12 @@ 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
&& (compilerVer < mkVersion [7,10]))
-- 9.10 shipw Cabal 3.12.0.0 affected by #9940
|| (mkVersion [9,10] <= compilerVer && compilerVer < mkVersion [9,11])) $ do

Check failure on line 1444 in cabal-install/tests/IntegrationTests2.hs

View workflow job for this annotation

GitHub Actions / hlint

Error: Parse error: on input `)' ▫︎ Found: " && (compilerVer < mkVersion [7,10]))\n -- 9.10 shipw Cabal 3.12.0.0 affected by #9940\n> || (mkVersion [9,10] <= compilerVer && compilerVer < mkVersion [9,11])) $ do\n \n (plan1, res1) <- executePlan plan0\n"

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

0 comments on commit 0643006

Please sign in to comment.