From 3bba91ef44f58ed98ed46c76fbf16db21cef5c25 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Thu, 15 Jun 2023 13:11:24 +0200 Subject: [PATCH] test: set $PATH to something predictable in the ASan wrapper This is still necessary when running with clang's ASan, as it uses an external binary to symbolize the stack traces. Follow-up to ba79e8c2ccd. --- test/test-functions | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test-functions b/test/test-functions index 0c20e60ad3d..0a5a67f7d16 100644 --- a/test/test-functions +++ b/test/test-functions @@ -1000,8 +1000,10 @@ EOF #!/usr/bin/env bash set -eux +export PATH="/sbin:/bin:/usr/sbin:/usr/bin" export ${default_environment[@]} [[ -n "\$ASAN_OPTIONS" && -n "\$UBSAN_OPTIONS" ]] + exec "$ROOTLIBDIR/systemd" "\$@" EOF chmod 0755 "$asan_wrapper" -- 2.47.3