diff options
-rw-r--r-- | testsuite/tests/rts/testblockalloc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/rts/testblockalloc.c b/testsuite/tests/rts/testblockalloc.c index 5ccc14bf59..7fd14b6b18 100644 --- a/testsuite/tests/rts/testblockalloc.c +++ b/testsuite/tests/rts/testblockalloc.c @@ -21,7 +21,15 @@ int main (int argc, char *argv[]) srand(SEED); +#if __GLASGOW_HASKELL__ >= 703 + { + RtsConfig conf = defaultRtsConfig; + conf.rts_opts_enabled = RtsOptsAll; + hs_init_ghc(&argc, &argv, conf); + } +#else hs_init(&argc, &argv); +#endif // repeatedly sweep though the array, allocating new random-sized // objects and deallocating the old ones. |