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 ba79e8c2cc.
This commit is contained in:
Frantisek Sumsal 2023-06-15 13:11:24 +02:00 committed by Luca Boccassi
parent 6e89663d23
commit 3bba91ef44

View file

@ -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"