summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-10-06 19:55:23 -0400
committerBen Gamari <ben@smart-cactus.org>2020-10-24 21:00:19 -0400
commitfcc42a10ada33f2ad6c344fdd8f8468742bf35cd (patch)
treea36a46a6ba847efb09147dc08d1f0259f14f14c7 /testsuite
parentd9bc7dea72e0135cd0e969e8b4e977a33cbec906 (diff)
downloadhaskell-fcc42a10ada33f2ad6c344fdd8f8468742bf35cd.tar.gz
testsuite: Skip high memory usage tests with TSAN
ThreadSanitizer significantly increases the memory footprint of tests, so much so that it can send machines into OOM.
Diffstat (limited to 'testsuite')
-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 d25748d405..1a1c908fc3 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -632,6 +632,10 @@ def collect_compiler_residency(tolerance_pct: float):
def high_memory_usage(name, opts):
opts.alone = True
+ # ThreadSanitizer significantly increases memory footprint; skip
+ if have_thread_sanitizer():
+ opts.skip = True
+
# If a test is for a multi-CPU race, then running the test alone
# increases the chance that we'll actually see it.
def multi_cpu_race(name, opts):