[llvm] f26823c - [test/dsymutil] Suppress LeakSanitizer on ARM dsymutil tests

Vedant Kumar via llvm-commits llvm-commits at lists.llvm.org
Thu May 14 15:44:59 PDT 2020


Author: Vedant Kumar
Date: 2020-05-14T15:44:49-07:00
New Revision: f26823c9dccf3bb02663f0d7e29291e8e33fe038

URL: https://github.com/llvm/llvm-project/commit/f26823c9dccf3bb02663f0d7e29291e8e33fe038
DIFF: https://github.com/llvm/llvm-project/commit/f26823c9dccf3bb02663f0d7e29291e8e33fe038.diff

LOG: [test/dsymutil] Suppress LeakSanitizer on ARM dsymutil tests

Just like on X86, we're getting reports of bogus leaks from
CoreFoundation in:

[_CFXPreferences(SourceAdditions) withSourceForIdentifier:user:byHost:container:cloud:perform:]

rdar://63238710

Added: 
    

Modified: 
    llvm/test/tools/dsymutil/ARM/lit.local.cfg

Removed: 
    


################################################################################
diff  --git a/llvm/test/tools/dsymutil/ARM/lit.local.cfg b/llvm/test/tools/dsymutil/ARM/lit.local.cfg
index ba88b6489112..aa8303bc7c91 100644
--- a/llvm/test/tools/dsymutil/ARM/lit.local.cfg
+++ b/llvm/test/tools/dsymutil/ARM/lit.local.cfg
@@ -3,4 +3,8 @@ if not 'ARM' in config.root.targets:
 if not 'AArch64' in config.root.targets:
     config.unsupported = True
 
+if config.llvm_use_sanitizer:
+    suppr = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'suppressions.txt')
+    config.environment['LSAN_OPTIONS'] = 'suppressions={}'.format(suppr)
+
 config.suffixes = ['.test', '.cpp', '.c']


        


More information about the llvm-commits mailing list