From adc216d983e28526f64206d8269f6aadd371660c Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Fri, 2 May 2014 21:47:35 +0000 Subject: [PATCH] [sanitizers] Propagate the sanitizer options through to the lit context. This makes it *really* easy to debug leaks FYI: ASAN_OPTIONS=detect_leaks=1 ./bin/llvm-lit -v llvm-svn: 207874 --- test/lit.cfg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/lit.cfg b/test/lit.cfg index f29ae85a09f..9eaeb1f4141 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -95,6 +95,11 @@ for symbolizer in ['ASAN_SYMBOLIZER_PATH', 'MSAN_SYMBOLIZER_PATH']: if symbolizer in os.environ: config.environment[symbolizer] = os.environ[symbolizer] +# Propagate options for sanitizers. +for options in ['ASAN_OPTIONS']: + if options in os.environ: + config.environment[options] = os.environ[options] + ### import os