llvm.org GIT mirror llvm / 3105d85
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 Alexey Samsonov 6 years ago
2 changed file(s) with 10 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
2626 config.environment['TMP'] = os.environ['TMP']
2727 if 'TEMP' in os.environ:
2828 config.environment['TEMP'] = os.environ['TEMP']
29
30 # Propagate path to symbolizer for ASan/MSan.
31 for symbolizer in ['ASAN_SYMBOLIZER_PATH', 'MSAN_SYMBOLIZER_PATH']:
32 if symbolizer in os.environ:
33 config.environment[symbolizer] = os.environ[symbolizer]
2934
3035 ###
3136
8888 # Propagate PYTHON_EXECUTABLE into the environment
8989 config.environment['PYTHON_EXECUTABLE'] = getattr(config, 'python_executable',
9090 '')
91
92 # Propagate path to symbolizer for ASan/MSan.
93 for symbolizer in ['ASAN_SYMBOLIZER_PATH', 'MSAN_SYMBOLIZER_PATH']:
94 if symbolizer in os.environ:
95 config.environment[symbolizer] = os.environ[symbolizer]
9196
9297 ###
9398