summaryrefslogtreecommitdiff
path: root/testsuite/driver/testlib.py
diff options
context:
space:
mode:
authorAndreas Klebinger <klebinger.andreas@gmx.at>2022-09-16 14:36:15 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-10-17 19:21:52 -0400
commitff6275ef829873a70350c6d597e485bb84dd1bb1 (patch)
treee9837e8ad61c85fd02f7390aac6903751f585699 /testsuite/driver/testlib.py
parent08ab5419286d2620f2e6762607bad03c5bcd29ad (diff)
downloadhaskell-ff6275ef829873a70350c6d597e485bb84dd1bb1.tar.gz
Testsuite: Add a new tables_next_to_code predicate.
And use it to avoid T21710a failing on non-tntc archs. Fixes #22169
Diffstat (limited to 'testsuite/driver/testlib.py')
-rw-r--r--testsuite/driver/testlib.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index 432b196053..29929892e9 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -569,6 +569,9 @@ def ghc_dynamic() -> bool:
def leading_underscore() -> bool:
return config.leading_underscore
+# TNTC enabled
+def tables_next_to_code() -> bool:
+ return config.tables_next_to_code
def fast() -> bool:
return config.speed == 2