diff options
author | Francis Ricci <francisjricci@gmail.com> | 2017-04-18 20:56:59 +0000 |
---|---|---|
committer | Francis Ricci <francisjricci@gmail.com> | 2017-04-18 20:56:59 +0000 |
commit | 5962f26bd374b50e7b2784696d3592471599549e (patch) | |
tree | b7836590f0eed5689e597a3a0b9ae5d7a671bf13 /test/lsan | |
parent | 73ac02fff7ce39a39f5228acb9ae14a9b79ebee6 (diff) |
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
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@300593 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lsan')
-rw-r--r-- | test/lsan/lit.common.cfg | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/lsan/lit.common.cfg b/test/lsan/lit.common.cfg index 3de341783..43ed02a4b 100644 --- a/test/lsan/lit.common.cfg +++ b/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 += ':' |