summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-04-04 07:41:20 +0000
committerAlexey Samsonov <samsonov@google.com>2013-04-04 07:41:20 +0000
commit32d2a6528c395e52914df51f25af13cafaace8dd (patch)
treeb9b79244c535bded06c8a242e3a7d5487ce092ae
parent3105627bd76d6a0cc5ee305c99f4c96519bac9ac (diff)
downloadclang-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.cfg5
-rw-r--r--test/lit.cfg5
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.