[llvm] r178749 - Propagate path to ASan/MSan symbolizer into test environment to produce useful reports on errors.
Alexey Samsonov
samsonov at google.com
Thu Apr 4 00:41:00 PDT 2013
Author: samsonov
Date: Thu Apr 4 02:41:00 2013
New Revision: 178749
URL: http://llvm.org/viewvc/llvm-project?rev=178749&view=rev
Log:
Propagate path to ASan/MSan symbolizer into test environment to produce useful reports on errors.
Modified:
llvm/trunk/test/Unit/lit.cfg
llvm/trunk/test/lit.cfg
Modified: llvm/trunk/test/Unit/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Unit/lit.cfg?rev=178749&r1=178748&r2=178749&view=diff
==============================================================================
--- llvm/trunk/test/Unit/lit.cfg (original)
+++ llvm/trunk/test/Unit/lit.cfg Thu Apr 4 02:41:00 2013
@@ -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.
Modified: llvm/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg?rev=178749&r1=178748&r2=178749&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg (original)
+++ llvm/trunk/test/lit.cfg Thu Apr 4 02:41:00 2013
@@ -90,6 +90,11 @@ config.environment['LLVM_SRC_ROOT'] = ge
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
More information about the llvm-commits
mailing list