From 3105d85dc4e12fc7c69cbafc269facab7543fac1 Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Thu, 4 Apr 2013 07:41:00 +0000 Subject: [PATCH] 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 --- test/Unit/lit.cfg | 5 +++++ test/lit.cfg | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/test/Unit/lit.cfg b/test/Unit/lit.cfg index ba4cbc5d798..15cf626c72b 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 216e3c1aa0d..0ecd8feb26a 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -90,6 +90,11 @@ config.environment['LLVM_SRC_ROOT'] = getattr(config, 'llvm_src_root', '') 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 -- 2.34.1