]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: set $PATH to something predictable in the ASan wrapper
authorFrantisek Sumsal <fsumsal@redhat.com>
Thu, 15 Jun 2023 11:11:24 +0000 (13:11 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 15 Jun 2023 13:53:32 +0000 (14:53 +0100)
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

index 0c20e60ad3d29724076d2f8f9896bbaec044f178..0a5a67f7d165471e114bf4c09f36611cfa6033c5 100644 (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"