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 28, 2024
1 parent 3a8aa16 commit 213dcb3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 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
&& (compilerVer < mkVersion [7,10])
|| compilerVer >= mkVersion [9,10])) $ do

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

View workflow job for this annotation

GitHub Actions / hlint

Error: Parse error: on input `)' ▫︎ Found: " unless (isOSX (pkgConfigPlatform sharedConfig)\n && (compilerVer < mkVersion [7,10])\n> || compilerVer >= mkVersion [9,10])) $ do\n \n (plan1, res1) <- executePlan plan0\n"

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

0 comments on commit 213dcb3

Please sign in to comment.