on master help sign in
Fix test suite execution when run under Jenkins
6e377a5Bryan O'Sullivan
Data/Text/Encoding/Utf8.hs+4
@@ -30,6 +30,10 @@ module Data.Text.Encoding.Utf8
30 , validate4
30 , validate4
31 ) where
31 ) where
32
32
33+#if defined(TEST_SUITE)
34+# undef ASSERTS
35+#endif
36+
33#if defined(ASSERTS)
37#if defined(ASSERTS)
34import Control.Exception (assert)
38import Control.Exception (assert)
35#endif
39#endif
tests/text-tests.cabal+2
@@ -30,6 +30,7 @@ executable text-tests
30 -fhpc
30 -fhpc
31
31
32 cpp-options:
32 cpp-options:
33+ -DTEST_SUITE
33 -DASSERTS
34 -DASSERTS
34 -DHAVE_DEEPSEQ
35 -DHAVE_DEEPSEQ
35
36
@@ -113,6 +114,7 @@ library
113 -fhpc
114 -fhpc
114
115
115 cpp-options:
116 cpp-options:
117+ -DTEST_SUITE
116 -DHAVE_DEEPSEQ
118 -DHAVE_DEEPSEQ
117 -DASSERTS
119 -DASSERTS
118 -DINTEGER_GMP
120 -DINTEGER_GMP