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:
parent
6e89663d23
commit
3bba91ef44
1 changed files with 2 additions and 0 deletions
|
@ -1000,8 +1000,10 @@ EOF
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eux
|
set -eux
|
||||||
|
|
||||||
|
export PATH="/sbin:/bin:/usr/sbin:/usr/bin"
|
||||||
export ${default_environment[@]}
|
export ${default_environment[@]}
|
||||||
[[ -n "\$ASAN_OPTIONS" && -n "\$UBSAN_OPTIONS" ]]
|
[[ -n "\$ASAN_OPTIONS" && -n "\$UBSAN_OPTIONS" ]]
|
||||||
|
|
||||||
exec "$ROOTLIBDIR/systemd" "\$@"
|
exec "$ROOTLIBDIR/systemd" "\$@"
|
||||||
EOF
|
EOF
|
||||||
chmod 0755 "$asan_wrapper"
|
chmod 0755 "$asan_wrapper"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue