[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
Mon Apr 17 11:21:32 PDT 2017


fjricci updated this revision to Diff 95463.
fjricci added a comment.

Split out abort_on_error and NFC


https://reviews.llvm.org/D32129

Files:
  test/lsan/lit.common.cfg


Index: test/lsan/lit.common.cfg
===================================================================
--- test/lsan/lit.common.cfg
+++ 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.95463.patch
Type: text/x-patch
Size: 713 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170417/a2ba6635/attachment.bin>


More information about the llvm-commits mailing list