Fix test suite execution when run under Jenkins
commit6e377a5c0ee2f3fd96c9a292adefb790b325a8d3
authorBryan O'Sullivan <bos@serpentine.com>
dateMon 30 Dec 2013, 15:55 (13 years ago)
parentd31b70e
Data/Text/Encoding/Utf8.hs+4
@@ -30,6 +30,10 @@ module Data.Text.Encoding.Utf8
3030 , validate4
3131 ) where
3232
33+#if defined(TEST_SUITE)
34+# undef ASSERTS
35+#endif
36+
3337#if defined(ASSERTS)
3438import Control.Exception (assert)
3539#endif
tests/text-tests.cabal+2
@@ -30,6 +30,7 @@ executable text-tests
3030 -fhpc
3131
3232 cpp-options:
33+ -DTEST_SUITE
3334 -DASSERTS
3435 -DHAVE_DEEPSEQ
3536
@@ -113,6 +114,7 @@ library
113114 -fhpc
114115
115116 cpp-options:
117+ -DTEST_SUITE
116118 -DHAVE_DEEPSEQ
117119 -DASSERTS
118120 -DINTEGER_GMP