Skip to content

Commit a255b67

Browse files
committed
skipIfGhcVersion
1 parent 0ab11be commit a255b67

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,9 @@ isGhcVersion range = do
804804
skipUnlessGhcVersion :: String -> TestM ()
805805
skipUnlessGhcVersion range = skipUnless ("needs ghc " ++ range) =<< isGhcVersion range
806806

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

0 commit comments

Comments
 (0)