diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-10-06 19:55:23 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2020-10-24 21:00:19 -0400 |
commit | fcc42a10ada33f2ad6c344fdd8f8468742bf35cd (patch) | |
tree | a36a46a6ba847efb09147dc08d1f0259f14f14c7 /testsuite/driver | |
parent | d9bc7dea72e0135cd0e969e8b4e977a33cbec906 (diff) | |
download | haskell-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/driver')
-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 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): |