From a0905079d51cbf1f62ee13a00666cd3255a2580f Mon Sep 17 00:00:00 2001 From: Kuba Brecka Date: Tue, 28 Jul 2015 15:35:04 +0000 Subject: [PATCH] Applying the Darwin-specific default lit ASAN_OPTIONS to UBSan+ASan tests as well. Should fix the test failures after r243418, see review at http://reviews.llvm.org/D7203. llvm-svn: 243423 --- compiler-rt/test/ubsan/lit.common.cfg | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compiler-rt/test/ubsan/lit.common.cfg b/compiler-rt/test/ubsan/lit.common.cfg index 7ae078a8625c..5494cc3c35cb 100644 --- a/compiler-rt/test/ubsan/lit.common.cfg +++ b/compiler-rt/test/ubsan/lit.common.cfg @@ -25,6 +25,12 @@ elif ubsan_lit_test_mode == "AddressSanitizer": config.available_features.add("ubsan-asan") clang_ubsan_cflags = ["-fsanitize=address"] config.environment['ASAN_OPTIONS'] = 'detect_leaks=0' + + # Platform-specific default ASAN_OPTIONS for lit tests. + 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'. + config.environment['ASAN_OPTIONS'] = 'abort_on_error=0' elif ubsan_lit_test_mode == "MemorySanitizer": config.name = 'UBSan-MSan-' + config.target_arch config.available_features.add("ubsan-msan")