Commit b9057376 authored by tulcod's avatar tulcod
Browse files

Deduplicate version checks in cabal-testsuite

Duplication introduced by #4065.
parent acc460dc
......@@ -16,9 +16,9 @@ import Distribution.Version
import PackageTests.PackageTester
-- Foreign libraries don't work with GHC 7.2 and earlier
-- Foreign libraries don't work with GHC 7.6 and earlier
suite :: TestM ()
suite = whenGhcVersion (>= mkVersion [7,4]) . withPackageDb $ do
suite = whenGhcVersion (>= mkVersion [7,8]) . withPackageDb $ do
cabal_install []
dist_dir <- distDir
pkg_dir <- packageDir
......
......@@ -58,8 +58,7 @@ tests config = do
tc "AutogenModules/SrcDist" PackageTests.AutogenModules.SrcDist.Check.suite
-- Test that foreign libraries work
tc "ForeignLibs" . whenGhcVersion (>= mkVersion [7,8]) $
PackageTests.ForeignLibs.Check.suite
tc "ForeignLibs" PackageTests.ForeignLibs.Check.suite
---------------------------------------------------------------------
-- * Test suite tests
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment