summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorFilipe Cabecinhas <me@filcab.net>2015-06-04 00:12:55 +0000
committerFilipe Cabecinhas <me@filcab.net>2015-06-04 00:12:55 +0000
commit587e947bdd4c1e5806cf4c7f5764a471d7b4c3c5 (patch)
tree3e6e92d40a8f2cfd47a77c9ece0faded57fff5f4 /test
parentf554276c7f8e8594304b4bf9953a03366bc67895 (diff)
[Sanitizers] Add *SAN_OPTIONS to possibly_dangerous_env_vars
Summary: This way, if they're set when running ninja check-ubsan (or another sanitizer), they get cleared before we start invoking the programs. Reviewers: samsonov, kcc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D10229 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@238991 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/lit.common.cfg4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lit.common.cfg b/test/lit.common.cfg
index 54580703d..2a5d01ccc 100644
--- a/test/lit.common.cfg
+++ b/test/lit.common.cfg
@@ -38,7 +38,9 @@ else:
config.available_features.add(compiler_id)
# Clear some environment variables that might affect Clang.
-possibly_dangerous_env_vars = ['COMPILER_PATH', 'RC_DEBUG_OPTIONS',
+possibly_dangerous_env_vars = ['ASAN_OPTIONS', 'DFSAN_OPTIONS', 'LSAN_OPTIONS',
+ 'MSAN_OPTIONS', 'UBSAN_OPTIONS',
+ 'COMPILER_PATH', 'RC_DEBUG_OPTIONS',
'CINDEXTEST_PREAMBLE_FILE', 'LIBRARY_PATH',
'CPATH', 'C_INCLUDE_PATH', 'CPLUS_INCLUDE_PATH',
'OBJC_INCLUDE_PATH', 'OBJCPLUS_INCLUDE_PATH',