summaryrefslogtreecommitdiff
path: root/test/lit.cfg
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-03-26 08:28:18 +0000
committerAlexey Samsonov <samsonov@google.com>2013-03-26 08:28:18 +0000
commit48c08343fa76d51556d069d59f7bc28572b87ccc (patch)
tree007276df3a92aad1ee6622f5cf3bb47c0b1ab6cb /test/lit.cfg
parent42958026f0ea0a163200b1f5ba20238c7102f2e9 (diff)
downloadclang-48c08343fa76d51556d069d59f7bc28572b87ccc.tar.gz
Add asan/msan to the list of available features in LIT test runner. Mark ASan-unfriendly test as XFAIL.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177995 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lit.cfg')
-rw-r--r--test/lit.cfg6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/lit.cfg b/test/lit.cfg
index f7eb7319b9..b3b20c8c4e 100644
--- a/test/lit.cfg
+++ b/test/lit.cfg
@@ -294,3 +294,9 @@ if llc_props['enable_assertions']:
if lit.util.which('xmllint'):
config.available_features.add('xmllint')
+# Sanitizers.
+if config.llvm_use_sanitizer == "Address":
+ config.available_features.add("asan")
+if (config.llvm_use_sanitizer == "Memory" or
+ config.llvm_use_sanitizer == "MemoryWithOrigins"):
+ config.available_features.add("msan")