Index: compiler-rt/trunk/test/lsan/lit.common.cfg =================================================================== --- compiler-rt/trunk/test/lsan/lit.common.cfg +++ compiler-rt/trunk/test/lsan/lit.common.cfg @@ -34,6 +34,13 @@ # 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 += ':'