diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-06-11 15:56:07 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2019-06-12 08:27:25 -0400 |
commit | 20160f1a8a8ed69c168bee5c8d43373191303b3f (patch) | |
tree | 0cc245157a0a58e253148ef29353f8d550fe8453 /testsuite/driver/testlib.py | |
parent | 1cbfef47f0288a0f55e8f3db71076afd190121ca (diff) | |
download | haskell-20160f1a8a8ed69c168bee5c8d43373191303b3f.tar.gz |
testsuite: Don't run tests requiring TH in profasm way when GhcDynamic
Since we can't load profiled objects when GhcDynamic==YES. Affects:
* T16737
* T16384
* T16718
* T16619
* T16190
Diffstat (limited to 'testsuite/driver/testlib.py')
-rw-r--r-- | testsuite/driver/testlib.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py index 442d90da8a..9ec39267d6 100644 --- a/testsuite/driver/testlib.py +++ b/testsuite/driver/testlib.py @@ -434,6 +434,14 @@ def unless(b, f): def doing_ghci(): return 'ghci' in config.run_ways +def requires_th(name, opts): + """ + Mark a test as requiring TemplateHaskell. Currently this means + that we don't run the test in the profasm when when GHC is + dynamically-linked since we can't load profiled objects in this case. + """ + return when(ghc_dynamic(), omit_ways(['profasm'])) + def ghc_dynamic(): return config.ghc_dynamic |