summaryrefslogtreecommitdiff
path: root/testsuite/driver
diff options
context:
space:
mode:
authorStefan Schulze Frielinghaus <stefansf@linux.ibm.com>2019-10-30 16:42:30 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-11-08 05:36:54 -0500
commit9db2e905f974f6b6dae74cb5157c497e056d24f2 (patch)
treeb23a00b956b06fa6dd84d205d6c0a2c48b041396 /testsuite/driver
parenta3ce52fd5704247de2360f0e8423834113fe3a71 (diff)
downloadhaskell-9db2e905f974f6b6dae74cb5157c497e056d24f2.tar.gz
Testsuite: Introduce req_rts_linker
Some tests depend on the RTS linker. Introduce a modifier to skip such tests, in case the RTS linker is not available.
Diffstat (limited to 'testsuite/driver')
-rw-r--r--testsuite/driver/testlib.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index 4177a2a15d..3ee9a8afdf 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -192,6 +192,10 @@ def req_interp( name, opts ):
if not config.have_interp:
opts.expect = 'fail'
+def req_rts_linker( name, opts ):
+ if not config.have_RTS_linker:
+ opts.expect = 'fail'
+
def req_th( name, opts ):
"""
Mark a test as requiring TemplateHaskell. In addition to having interpreter