diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-04-04 07:41:00 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-04-04 07:41:00 +0000 |
commit | 3105d85dc4e12fc7c69cbafc269facab7543fac1 (patch) | |
tree | f658a485b5cf83d1e8e920733e2c5089a713d768 /test/lit.cfg | |
parent | 5cb04ae563edc3c46464a7aa00e24c05c524547b (diff) | |
download | llvm-3105d85dc4e12fc7c69cbafc269facab7543fac1.tar.gz llvm-3105d85dc4e12fc7c69cbafc269facab7543fac1.tar.bz2 llvm-3105d85dc4e12fc7c69cbafc269facab7543fac1.tar.xz |
Propagate path to ASan/MSan symbolizer into test environment to produce useful reports on errors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178749 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lit.cfg')
-rw-r--r-- | test/lit.cfg | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/lit.cfg b/test/lit.cfg index 216e3c1aa0..0ecd8feb26 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', '') +# Propagate path to symbolizer for ASan/MSan. +for symbolizer in ['ASAN_SYMBOLIZER_PATH', 'MSAN_SYMBOLIZER_PATH']: + if symbolizer in os.environ: + config.environment[symbolizer] = os.environ[symbolizer] + ### import os |