From e849859f3dcd0fcac2ad44396338f0a8f344b55b Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Fri, 21 Sep 2018 11:55:17 +0000 Subject: [PATCH] [dsymutil] Suppress CoreFoundation leaks in tests. This suppresses CoreFoundation originated leaks in the dsymutil tests. I'm not sure if this is a false positive or not, but either way we don't have control over it and shouldn't keep the bot red. http://lab.llvm.org:8080/green/job/clang-stage2-cmake-RgSan/ git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@342724 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/tools/dsymutil/X86/lit.local.cfg | 6 ++++++ test/tools/dsymutil/X86/suppressions.txt | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 test/tools/dsymutil/X86/suppressions.txt diff --git a/test/tools/dsymutil/X86/lit.local.cfg b/test/tools/dsymutil/X86/lit.local.cfg index 05f8b38b3346..4fa63995ae49 100644 --- a/test/tools/dsymutil/X86/lit.local.cfg +++ b/test/tools/dsymutil/X86/lit.local.cfg @@ -1,4 +1,10 @@ +import os + if not 'X86' in config.root.targets: config.unsupported = True +if "Leaks" in 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', '.m', '.s'] diff --git a/test/tools/dsymutil/X86/suppressions.txt b/test/tools/dsymutil/X86/suppressions.txt new file mode 100644 index 000000000000..0a43d4493a93 --- /dev/null +++ b/test/tools/dsymutil/X86/suppressions.txt @@ -0,0 +1,2 @@ +# Ignore leaks in CoreFoundation. +leak:CF