Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.

Commit

Permalink
[dsymutil] Suppress CoreFoundation leaks in tests.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
JDevlieghere committed Sep 21, 2018
1 parent 119d036 commit e849859
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/tools/dsymutil/X86/lit.local.cfg
Original file line number Diff line number Diff line change
@@ -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']
2 changes: 2 additions & 0 deletions test/tools/dsymutil/X86/suppressions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Ignore leaks in CoreFoundation.
leak:CF

0 comments on commit e849859

Please sign in to comment.