Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/polly
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2022-05-20 05:22:02 +0300
committerVitaly Buka <vitalybuka@google.com>2022-05-20 05:24:16 +0300
commitd33c36235df1925b894acd1352ba0d541e97afac (patch)
tree1733298f66108e5808399c72eee74008fec82586 /polly
parent0e02bf635821be8deb2e8094706198838e45e968 (diff)
[lit] Fix setup of sanitizer environment
Not all options were propageted into tests. Reviewed By: ychen Differential Revision: https://reviews.llvm.org/D122869
Diffstat (limited to 'polly')
-rw-r--r--polly/test/Unit/lit.cfg17
1 files changed, 13 insertions, 4 deletions
diff --git a/polly/test/Unit/lit.cfg b/polly/test/Unit/lit.cfg
index eca3aaeb3308..4763c455e6b3 100644
--- a/polly/test/Unit/lit.cfg
+++ b/polly/test/Unit/lit.cfg
@@ -32,10 +32,19 @@ 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]
+# Propagate sanitizer options.
+for var in [
+ 'ASAN_SYMBOLIZER_PATH',
+ 'MSAN_SYMBOLIZER_PATH',
+ 'TSAN_SYMBOLIZER_PATH',
+ 'UBSAN_SYMBOLIZER_PATH',
+ 'ASAN_OPTIONS',
+ 'MSAN_OPTIONS',
+ 'TSAN_OPTIONS',
+ 'UBSAN_OPTIONS',
+]:
+ if var in os.environ:
+ config.environment[var] = os.environ[var]
if platform.system() == 'Darwin':
shlibpath_var = 'DYLD_LIBRARY_PATH'