From fdf7779795e435579719d50fcb9eaf94cf569f6e Mon Sep 17 00:00:00 2001 From: Francis Ricci Date: Tue, 18 Apr 2017 20:56:59 +0000 Subject: [PATCH] Don't use abort_on_error for lsan darwin test suite Summary: This option is disabled by our other test suites, and will cause failures when unit tests abort instead of failing with an error code. Will also prevent the test suite from being too slow. Reviewers: kubamracek, alekseyshl Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D32129 llvm-svn: 300593 --- compiler-rt/test/lsan/lit.common.cfg | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/compiler-rt/test/lsan/lit.common.cfg b/compiler-rt/test/lsan/lit.common.cfg index 3de341783ed0..43ed02a4bfce 100644 --- a/compiler-rt/test/lsan/lit.common.cfg +++ b/compiler-rt/test/lsan/lit.common.cfg @@ -34,6 +34,13 @@ config.name += config.name_suffix # Platform-specific default LSAN_OPTIONS for lit tests. default_lsan_opts = '' +if config.host_os == 'Darwin': + # On Darwin, we default to `abort_on_error=1`, which would make tests run + # much slower. Let's override this and run lit tests with 'abort_on_error=0'. + # Also, make sure we do not overwhelm the syslog while testing. + default_lsan_opts = 'abort_on_error=0' + default_lsan_opts += ':log_to_syslog=0' + if default_lsan_opts: config.environment['LSAN_OPTIONS'] = default_lsan_opts default_lsan_opts += ':'