[compiler-rt] r243423 - Applying the Darwin-specific default lit ASAN_OPTIONS to UBSan+ASan tests as

Kuba Brecka kuba.brecka at gmail.com
Tue Jul 28 08:35:04 PDT 2015


Author: kuba.brecka
Date: Tue Jul 28 10:35:04 2015
New Revision: 243423

URL: http://llvm.org/viewvc/llvm-project?rev=243423&view=rev
Log:
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.


Modified:
    compiler-rt/trunk/test/ubsan/lit.common.cfg

Modified: compiler-rt/trunk/test/ubsan/lit.common.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/ubsan/lit.common.cfg?rev=243423&r1=243422&r2=243423&view=diff
==============================================================================
--- compiler-rt/trunk/test/ubsan/lit.common.cfg (original)
+++ compiler-rt/trunk/test/ubsan/lit.common.cfg Tue Jul 28 10:35:04 2015
@@ -25,6 +25,12 @@ elif ubsan_lit_test_mode == "AddressSani
   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")





More information about the llvm-commits mailing list