Skip to content

Commit

Permalink
Add skipIfGhcVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
robx committed Mar 3, 2022
1 parent 6b36f3f commit 7dba4e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cabal-testsuite/src/Test/Cabal/Prelude.hs
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,9 @@ isGhcVersion range = do
skipUnlessGhcVersion :: String -> TestM ()
skipUnlessGhcVersion range = skipUnless ("needs ghc " ++ range) =<< isGhcVersion range

skipIfGhcVersion :: String -> TestM ()
skipIfGhcVersion range = skipUnless ("incompatible with ghc " ++ range) =<< isGhcVersion range

isWindows :: TestM Bool
isWindows = return (buildOS == Windows)

Expand Down

0 comments on commit 7dba4e5

Please sign in to comment.