Commit 3007be18 authored by tulcod's avatar tulcod Committed by GitHub
Browse files

Merge pull request #4072 from abooij/pr4065-fixup

Deduplicate version checks in cabal-testsuite
parents acc460dc df647b6b
......@@ -1443,7 +1443,7 @@ executables when the executable is run (or even lazily during
execution), while static libraries (``.a`` files on Linux/OSX, ``.lib``
files on Windows) get linked against the executable at compile time.
Foreign libraries only work with GHC 7.4 and later.
Foreign libraries only work with GHC 7.8 and later.
A typical stanza for a foreign library looks like
......
......@@ -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