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/Unit | |
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/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 ba4cbc5d79..15cf626c72 100644 --- a/test/Unit/lit.cfg +++ b/test/Unit/lit.cfg @@ -28,6 +28,11 @@ if 'TMP' in os.environ: if 'TEMP' in os.environ: config.environment['TEMP'] = os.environ['TEMP'] +# 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] + ### # Check that the object root is known. |