summaryrefslogtreecommitdiff
path: root/test/test-functions
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2022-06-06 14:45:11 +0200
committerFrantisek Sumsal <frantisek@sumsal.cz>2022-06-06 14:45:11 +0200
commit3ea18a2e36a5b8ac60c76e407f9dd38800455725 (patch)
tree22781f2b51c8722a19ebc9b1728de64372386bd5 /test/test-functions
parent369151c9c73b12fb7a88fc2b558499c2d4832982 (diff)
downloadsystemd-3ea18a2e36a5b8ac60c76e407f9dd38800455725.tar.gz
test: set $ASAN_RT_PATH along with $LD_PRELOAD to the ASan runtime DSO
Since we unset $LD_PRELOAD in the testsuite-* units (due to another issue), let's store the path to the ASan DSO in another env variable, so we can easily access it in the testsuite scripts when needed.
Diffstat (limited to 'test/test-functions')
-rw-r--r--test/test-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-functions b/test/test-functions
index a7026d7ad7..1459ee1456 100644
--- a/test/test-functions
+++ b/test/test-functions
@@ -832,7 +832,7 @@ mount -o remount,rw /
# A lot of services (most notably dbus) won't start without preloading libasan
# See https://github.com/systemd/systemd/issues/5004
-DEFAULT_ENVIRONMENT="\$DEFAULT_ENVIRONMENT LD_PRELOAD=$ASAN_RT_PATH"
+DEFAULT_ENVIRONMENT="\$DEFAULT_ENVIRONMENT LD_PRELOAD=$ASAN_RT_PATH ASAN_RT_PATH=$ASAN_RT_PATH"
if [[ "$ASAN_COMPILER" == "clang" ]]; then
# Let's add the ASan DSO's path to the dynamic linker's cache. This is pretty