summaryrefslogtreecommitdiff
path: root/testsuite/mk
diff options
context:
space:
mode:
authorCheng Shao <terrorjack@type.dance>2023-04-01 19:48:31 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-04-27 16:00:35 -0400
commitaa6afe8ab48b5fbe09d332a25ce6af4719c5cb44 (patch)
tree3705175405c4c3a776f0588c5656fa416bb5987d /testsuite/mk
parent791cce64a3ea23fc0ad95fb7e7083a0ff0c35154 (diff)
downloadhaskell-aa6afe8ab48b5fbe09d332a25ce6af4719c5cb44.tar.gz
testsuite: add the req_ghc_with_threaded_rts predicate
This patch adds the req_ghc_with_threaded_rts predicate to the testsuite to assert the platform has threaded RTS, and mark some tests as req_ghc_with_threaded_rts. Also makes ghc_with_threaded_rts a config field instead of a global variable.
Diffstat (limited to 'testsuite/mk')
-rw-r--r--testsuite/mk/test.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/mk/test.mk b/testsuite/mk/test.mk
index bb5d138856..7b346376aa 100644
--- a/testsuite/mk/test.mk
+++ b/testsuite/mk/test.mk
@@ -110,9 +110,9 @@ HAVE_READELF := $(shell if readelf --version > /dev/null 2> /dev/null; then echo
BIGNUM_GMP := $(shell "$(GHC_PKG)" field ghc-bignum exposed-modules | grep GMP)
ifeq "$(filter thr, $(GhcRTSWays))" "thr"
-RUNTEST_OPTS += -e ghc_with_threaded_rts=True
+RUNTEST_OPTS += -e config.ghc_with_threaded_rts=True
else
-RUNTEST_OPTS += -e ghc_with_threaded_rts=False
+RUNTEST_OPTS += -e config.ghc_with_threaded_rts=False
endif
ifeq "$(filter dyn, $(GhcRTSWays))" "dyn"