summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-10-06 19:55:23 -0400
committerBen Gamari <ben@well-typed.com>2020-12-01 12:48:54 -0500
commitdb69bfe9bb215a7bc5b4a355d7dc4b5b62d5245f (patch)
tree743f23446cae18dc3249ce5b5e005d5bffa194f4
parentd29d1d5935995d2417822b8dec99856552a5ac2b (diff)
downloadhaskell-db69bfe9bb215a7bc5b4a355d7dc4b5b62d5245f.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.
-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 fad76a2220..c950bc4bbf 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -606,6 +606,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):