summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2019-07-08 13:47:46 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-07-08 19:00:14 +0200
commitf5f8cc7aed1f66962ec291c31639048f1dc3b55f (patch)
tree6ffd26a891e09cd526e2e6177c19ca51644589e0 /test
parentFUNDING: this needs to be yaml (diff)
downloadsystemd-f5f8cc7aed1f66962ec291c31639048f1dc3b55f.tar.xz
systemd-f5f8cc7aed1f66962ec291c31639048f1dc3b55f.zip
test: make ASAN/UBSAN_OPTIONS overridable from the outside
This should allow us to tweak the ASAN_OPTIONS and UBSAN_OPTIONS env variables for integration tests as well
Diffstat (limited to 'test')
-rw-r--r--test/test-functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-functions b/test/test-functions
index 4a76dd70ea..8db4060ced 100644
--- a/test/test-functions
+++ b/test/test-functions
@@ -395,8 +395,8 @@ create_asan_wrapper() {
set -x
-DEFAULT_ASAN_OPTIONS=strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1
-DEFAULT_UBSAN_OPTIONS=print_stacktrace=1:print_summary=1:halt_on_error=1
+DEFAULT_ASAN_OPTIONS=${ASAN_OPTIONS:-strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1}
+DEFAULT_UBSAN_OPTIONS=${UBSAN_OPTIONS:-print_stacktrace=1:print_summary=1:halt_on_error=1}
DEFAULT_ENVIRONMENT="ASAN_OPTIONS=\$DEFAULT_ASAN_OPTIONS UBSAN_OPTIONS=\$DEFAULT_UBSAN_OPTIONS"
# As right now bash is the PID 1, we can't expect PATH to have a sane value.