diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-03-13 06:58:09 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-03-13 06:58:09 +0000 |
commit | 992dbcfbcc9b666f61d88fc6ae5010f57db07369 (patch) | |
tree | 122b53570ed55ed635042f7950f1b5edce3a6f5c /test/Unit | |
parent | 816281fccfbf0eda079a065ddadc4670b2c5d912 (diff) | |
download | external_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/Unit')
-rw-r--r-- | test/Unit/lit.cfg | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Unit/lit.cfg b/test/Unit/lit.cfg index ba4cbc5..1f6fce8 100644 --- a/test/Unit/lit.cfg +++ b/test/Unit/lit.cfg @@ -81,3 +81,8 @@ if config.enable_shared: shlibpath = os.pathsep + shlibpath shlibpath = config.shlibdir + shlibpath config.environment[config.shlibpath_var] = shlibpath + +# 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' |