aboutsummaryrefslogtreecommitdiffstats
path: root/test/lit.cfg
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-03-13 06:58:09 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-03-13 06:58:09 +0000
commit992dbcfbcc9b666f61d88fc6ae5010f57db07369 (patch)
tree122b53570ed55ed635042f7950f1b5edce3a6f5c /test/lit.cfg
parent816281fccfbf0eda079a065ddadc4670b2c5d912 (diff)
downloadexternal_llvm-992dbcfbcc9b666f61d88fc6ae5010f57db07369.zip
external_llvm-992dbcfbcc9b666f61d88fc6ae5010f57db07369.tar.gz
external_llvm-992dbcfbcc9b666f61d88fc6ae5010f57db07369.tar.bz2
Set symbolizer path in the test environment.
This is needed to get symbolized stack traces when running LLVM tests under (A|M)San. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176933 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lit.cfg')
-rw-r--r--test/lit.cfg5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/lit.cfg b/test/lit.cfg
index 128bbe9..4953bdd 100644
--- a/test/lit.cfg
+++ b/test/lit.cfg
@@ -90,6 +90,11 @@ config.environment['LLVM_SRC_ROOT'] = getattr(config, 'llvm_src_root', '')
config.environment['PYTHON_EXECUTABLE'] = getattr(config, 'python_executable',
'')
+# Setup paths to llvm-symbolizer for Sanitizer tools.
+llvm_tools_dir = getattr(config, 'llvm_tools_dir', None)
+config.environment['ASAN_SYMBOLIZER_PATH'] = llvm_tools_dir + '/llvm-symbolizer'
+config.environment['MSAN_SYMBOLIZER_PATH'] = llvm_tools_dir + '/llvm-symbolizer'
+
###
import os