[polly] 3f5f290 - [test] Propagate HWASAN_OPTIONS
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 17 19:00:01 PDT 2022
Author: Vitaly Buka
Date: 2022-08-17T18:59:49-07:00
New Revision: 3f5f2905c48fb13275fd74048fb07c5676e86d94
URL: https://github.com/llvm/llvm-project/commit/3f5f2905c48fb13275fd74048fb07c5676e86d94
DIFF: https://github.com/llvm/llvm-project/commit/3f5f2905c48fb13275fd74048fb07c5676e86d94.diff
LOG: [test] Propagate HWASAN_OPTIONS
Added:
Modified:
clang/test/Unit/lit.cfg.py
compiler-rt/test/lit.common.cfg.py
llvm/test/Unit/lit.cfg.py
llvm/utils/lit/lit/TestingConfig.py
llvm/utils/lit/lit/llvm/config.py
mlir/test/Unit/lit.cfg.py
polly/test/Unit/lit.cfg
Removed:
################################################################################
diff --git a/clang/test/Unit/lit.cfg.py b/clang/test/Unit/lit.cfg.py
index 1aa3abc13d7d1..6fddb32f8dd7e 100644
--- a/clang/test/Unit/lit.cfg.py
+++ b/clang/test/Unit/lit.cfg.py
@@ -33,10 +33,12 @@
# Propagate sanitizer options.
for var in [
'ASAN_SYMBOLIZER_PATH',
+ 'HWASAN_SYMBOLIZER_PATH',
'MSAN_SYMBOLIZER_PATH',
'TSAN_SYMBOLIZER_PATH',
'UBSAN_SYMBOLIZER_PATH',
'ASAN_OPTIONS',
+ 'HWASAN_OPTIONS',
'MSAN_OPTIONS',
'TSAN_OPTIONS',
'UBSAN_OPTIONS',
diff --git a/compiler-rt/test/lit.common.cfg.py b/compiler-rt/test/lit.common.cfg.py
index c5a8420da14ff..d8c739f7cf056 100644
--- a/compiler-rt/test/lit.common.cfg.py
+++ b/compiler-rt/test/lit.common.cfg.py
@@ -175,8 +175,8 @@ def get_path_from_clang(args, allow_failure):
config.environment = dict(os.environ)
# Clear some environment variables that might affect Clang.
-possibly_dangerous_env_vars = ['ASAN_OPTIONS', 'DFSAN_OPTIONS', 'LSAN_OPTIONS',
- 'MSAN_OPTIONS', 'UBSAN_OPTIONS',
+possibly_dangerous_env_vars = ['ASAN_OPTIONS', 'DFSAN_OPTIONS', 'HWASAN_OPTIONS',
+ 'LSAN_OPTIONS', 'MSAN_OPTIONS', 'UBSAN_OPTIONS',
'COMPILER_PATH', 'RC_DEBUG_OPTIONS',
'CINDEXTEST_PREAMBLE_FILE', 'LIBRARY_PATH',
'CPATH', 'C_INCLUDE_PATH', 'CPLUS_INCLUDE_PATH',
diff --git a/llvm/test/Unit/lit.cfg.py b/llvm/test/Unit/lit.cfg.py
index 81e8dc04acea4..61f60de73889b 100644
--- a/llvm/test/Unit/lit.cfg.py
+++ b/llvm/test/Unit/lit.cfg.py
@@ -36,10 +36,12 @@
# Propagate sanitizer options.
for var in [
'ASAN_SYMBOLIZER_PATH',
+ 'HWASAN_SYMBOLIZER_PATH',
'MSAN_SYMBOLIZER_PATH',
'TSAN_SYMBOLIZER_PATH',
'UBSAN_SYMBOLIZER_PATH',
'ASAN_OPTIONS',
+ 'HWASAN_OPTIONS',
'MSAN_OPTIONS',
'TSAN_OPTIONS',
'UBSAN_OPTIONS',
diff --git a/llvm/utils/lit/lit/TestingConfig.py b/llvm/utils/lit/lit/TestingConfig.py
index 55e2a764d8fa6..63638725f140c 100644
--- a/llvm/utils/lit/lit/TestingConfig.py
+++ b/llvm/utils/lit/lit/TestingConfig.py
@@ -31,12 +31,14 @@ def fromdefaults(litConfig):
'LD_PRELOAD',
'LLVM_SYMBOLIZER_PATH',
'ASAN_SYMBOLIZER_PATH',
+ 'HWASAN_SYMBOLIZER_PATH',
'LSAN_SYMBOLIZER_PATH',
'MSAN_SYMBOLIZER_PATH',
'TSAN_SYMBOLIZER_PATH',
'UBSAN_SYMBOLIZER_PATH',
'ASAN_OPTIONS',
'LSAN_OPTIONS',
+ 'HWASAN_OPTIONS',
'MSAN_OPTIONS',
'TSAN_OPTIONS',
'UBSAN_OPTIONS',
diff --git a/llvm/utils/lit/lit/llvm/config.py b/llvm/utils/lit/lit/llvm/config.py
index b653161281464..93419213427fa 100644
--- a/llvm/utils/lit/lit/llvm/config.py
+++ b/llvm/utils/lit/lit/llvm/config.py
@@ -58,10 +58,12 @@ def __init__(self, lit_config, config):
self.with_system_environment([
'ASAN_SYMBOLIZER_PATH',
+ 'HWASAN_SYMBOLIZER_PATH',
'MSAN_SYMBOLIZER_PATH',
'TSAN_SYMBOLIZER_PATH',
'UBSAN_SYMBOLIZER_PATH'
'ASAN_OPTIONS',
+ 'HWASAN_OPTIONS',
'MSAN_OPTIONS',
'TSAN_OPTIONS',
'UBSAN_OPTIONS',
diff --git a/mlir/test/Unit/lit.cfg.py b/mlir/test/Unit/lit.cfg.py
index bf77dcbfb1621..5b66517b1788e 100644
--- a/mlir/test/Unit/lit.cfg.py
+++ b/mlir/test/Unit/lit.cfg.py
@@ -36,10 +36,12 @@
# Propagate sanitizer options.
for var in [
'ASAN_SYMBOLIZER_PATH',
+ 'HWASAN_SYMBOLIZER_PATH',
'MSAN_SYMBOLIZER_PATH',
'TSAN_SYMBOLIZER_PATH',
'UBSAN_SYMBOLIZER_PATH',
'ASAN_OPTIONS',
+ 'HWASAN_OPTIONS',
'MSAN_OPTIONS',
'TSAN_OPTIONS',
'UBSAN_OPTIONS',
diff --git a/polly/test/Unit/lit.cfg b/polly/test/Unit/lit.cfg
index 4763c455e6b34..6c450fbc54b5a 100644
--- a/polly/test/Unit/lit.cfg
+++ b/polly/test/Unit/lit.cfg
@@ -35,10 +35,12 @@ if 'TEMP' in os.environ:
# Propagate sanitizer options.
for var in [
'ASAN_SYMBOLIZER_PATH',
+ 'HWASAN_SYMBOLIZER_PATH',
'MSAN_SYMBOLIZER_PATH',
'TSAN_SYMBOLIZER_PATH',
'UBSAN_SYMBOLIZER_PATH',
'ASAN_OPTIONS',
+ 'HWASAN_OPTIONS',
'MSAN_OPTIONS',
'TSAN_OPTIONS',
'UBSAN_OPTIONS',
More information about the llvm-commits
mailing list