[lsan] Begin converting LSan tests to output tests.
In this CL all old tests are removed and one LIT test is added.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182730 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/lsan/lit_tests/lit.cfg b/lib/lsan/lit_tests/lit.cfg
index 2be359e..48e1453 100644
--- a/lib/lsan/lit_tests/lit.cfg
+++ b/lib/lsan/lit_tests/lit.cfg
@@ -30,10 +30,15 @@
% compiler_rt_lit_cfg)
lit.load_config(config, compiler_rt_lit_cfg)
-# Setup default compiler flags used with -fsanitize=leak option.
-clang_lsan_cxxflags = ("-ccc-cxx "
- + "-fsanitize=leak "
- + "-g")
+clang_cxxflags = ("-ccc-cxx "
+ + "-g "
+ + "-O0 "
+ + "-m64 ")
+
+clang_lsan_cxxflags = clang_cxxflags + "-fsanitize=leak "
+
+config.substitutions.append( ("%clangxx ", (" " + config.clang + " " +
+ clang_cxxflags + " ")) )
config.substitutions.append( ("%clangxx_lsan ", (" " + config.clang + " " +
clang_lsan_cxxflags + " ")) )