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
This commit is contained in:
Kuba Brecka 2015-07-28 15:35:04 +00:00
parent c573bf7a5f
commit a0905079d5
1 changed files with 6 additions and 0 deletions

View File

@ -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")