diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-10-06 19:55:23 -0400 |
---|---|---|
committer | Ben Gamari <ben@well-typed.com> | 2020-12-01 12:48:54 -0500 |
commit | db69bfe9bb215a7bc5b4a355d7dc4b5b62d5245f (patch) | |
tree | 743f23446cae18dc3249ce5b5e005d5bffa194f4 | |
parent | d29d1d5935995d2417822b8dec99856552a5ac2b (diff) | |
download | haskell-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.py | 4 |
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): |