From db69bfe9bb215a7bc5b4a355d7dc4b5b62d5245f Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Tue, 6 Oct 2020 19:55:23 -0400 Subject: 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. --- testsuite/driver/testlib.py | 4 ++++ 1 file changed, 4 insertions(+) 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): -- cgit v1.2.1