[PATCH] D37810: [test] Enable LeakSanitizer on 64-bit Darwin ASan clang builds
Francis Ricci via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 27 13:24:12 PDT 2017
fjricci updated this revision to Diff 116871.
fjricci edited the summary of this revision.
fjricci added a comment.
Remove disabled openmp test, since the leak was fixed in r314328
https://reviews.llvm.org/D37810
Files:
test/Modules/crash-vfs-ivfsoverlay.m
test/lit.cfg
Index: test/lit.cfg
===================================================================
--- test/lit.cfg
+++ test/lit.cfg
@@ -407,6 +407,9 @@
# Sanitizers.
if 'Address' in config.llvm_use_sanitizer:
config.available_features.add("asan")
+ # LeakSanitizer is disabled by default on Darwin, enable it
+ if re.match(r'^x86_64-apple.*', config.target_triple):
+ config.environment['ASAN_OPTIONS'] = 'detect_leaks=1'
else:
config.available_features.add("not_asan")
if 'Memory' in config.llvm_use_sanitizer:
Index: test/Modules/crash-vfs-ivfsoverlay.m
===================================================================
--- test/Modules/crash-vfs-ivfsoverlay.m
+++ test/Modules/crash-vfs-ivfsoverlay.m
@@ -7,6 +7,7 @@
// RUN: %S/../VFS/Inputs/vfsoverlay2.yaml > %t/srcvfs.yaml
// RUN: not env FORCE_CLANG_DIAGNOSTICS_CRASH= TMPDIR=%t TEMP=%t TMP=%t \
+// RUN: ASAN_OPTIONS=detect_leaks=0 \
// RUN: %clang -fsyntax-only -nostdinc %s \
// RUN: -I %S/Inputs/crash-recovery/usr/include \
// RUN: -ivfsoverlay %t/srcvfs.yaml \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37810.116871.patch
Type: text/x-patch
Size: 1068 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170927/8e0734ad/attachment.bin>
More information about the llvm-commits
mailing list