[PATCH] D32129: Don't use abort_on_error for lsan darwin test suite

Francis Ricci via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 18 14:09:55 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL300593: Don't use abort_on_error for lsan darwin test suite (authored by fjricci).

Changed prior to commit:
  https://reviews.llvm.org/D32129?vs=95463&id=95625#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D32129

Files:
  compiler-rt/trunk/test/lsan/lit.common.cfg


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 += ':'


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32129.95625.patch
Type: text/x-patch
Size: 767 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170418/f89a0d9a/attachment.bin>


More information about the llvm-commits mailing list