diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-04-04 07:41:20 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-04-04 07:41:20 +0000 |
commit | 32d2a6528c395e52914df51f25af13cafaace8dd (patch) | |
tree | b9b79244c535bded06c8a242e3a7d5487ce092ae | |
parent | 3105627bd76d6a0cc5ee305c99f4c96519bac9ac (diff) | |
download | clang-32d2a6528c395e52914df51f25af13cafaace8dd.tar.gz clang-32d2a6528c395e52914df51f25af13cafaace8dd.tar.bz2 clang-32d2a6528c395e52914df51f25af13cafaace8dd.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/cfe/trunk@178750 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Unit/lit.cfg | 5 | ||||
-rw-r--r-- | test/lit.cfg | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/Unit/lit.cfg b/test/Unit/lit.cfg index 8f27781523..d58337c8f7 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. diff --git a/test/lit.cfg b/test/lit.cfg index f692dc74e5..4466f0fc07 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -90,6 +90,11 @@ if clang_obj_root is not None: config.environment.get('LD_LIBRARY_PATH',''))) config.environment['LD_LIBRARY_PATH'] = path +# 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. |