Skip to content

Commit 7dba4e5

Browse files
committed
Add skipIfGhcVersion
1 parent 6b36f3f commit 7dba4e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cabal-testsuite/src/Test/Cabal/Prelude.hs

+3
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,9 @@ isGhcVersion range = do
803803
skipUnlessGhcVersion :: String -> TestM ()
804804
skipUnlessGhcVersion range = skipUnless ("needs ghc " ++ range) =<< isGhcVersion range
805805

806+
skipIfGhcVersion :: String -> TestM ()
807+
skipIfGhcVersion range = skipUnless ("incompatible with ghc " ++ range) =<< isGhcVersion range
808+
806809
isWindows :: TestM Bool
807810
isWindows = return (buildOS == Windows)
808811

0 commit comments

Comments
 (0)