r177995 - Add asan/msan to the list of available features in LIT test runner. Mark ASan-unfriendly test as XFAIL.

Alexey Samsonov samsonov at google.com
Tue Mar 26 01:28:18 PDT 2013


Author: samsonov
Date: Tue Mar 26 03:28:18 2013
New Revision: 177995

URL: http://llvm.org/viewvc/llvm-project?rev=177995&view=rev
Log:
Add asan/msan to the list of available features in LIT test runner. Mark ASan-unfriendly test as XFAIL.

Modified:
    cfe/trunk/test/lit.cfg
    cfe/trunk/test/lit.site.cfg.in

Modified: cfe/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/lit.cfg?rev=177995&r1=177994&r2=177995&view=diff
==============================================================================
--- cfe/trunk/test/lit.cfg (original)
+++ cfe/trunk/test/lit.cfg Tue Mar 26 03:28:18 2013
@@ -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")

Modified: cfe/trunk/test/lit.site.cfg.in
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/lit.site.cfg.in?rev=177995&r1=177994&r2=177995&view=diff
==============================================================================
--- cfe/trunk/test/lit.site.cfg.in (original)
+++ cfe/trunk/test/lit.site.cfg.in Tue Mar 26 03:28:18 2013
@@ -7,6 +7,7 @@ config.llvm_libs_dir = "@LLVM_LIBS_DIR@"
 config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
 config.clang_obj_root = "@CLANG_BINARY_DIR@"
 config.target_triple = "@TARGET_TRIPLE@"
+config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@"
 
 # Support substitution of the tools and libs dirs with user parameters. This is
 # used when we can't determine the tool dir at configuration time.





More information about the cfe-commits mailing list