From: Alexey Samsonov Date: Thu, 4 Apr 2013 07:41:20 +0000 (+0000) Subject: Propagate path to ASan/MSan symbolizer into test environment to produce useful report... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32d2a6528c395e52914df51f25af13cafaace8dd;p=clang 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 --- 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.