From: Daan De Meyer Date: Mon, 27 May 2024 11:38:51 +0000 (+0200) Subject: TEST-79-MEMPRESS: Load systemd-asan-env if available X-Git-Tag: v256-rc4~81^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aae299090773d69377629a65d684c577df238272;p=thirdparty%2Fsystemd.git TEST-79-MEMPRESS: Load systemd-asan-env if available Required since we run with DynamicUser=1. --- diff --git a/test/units/TEST-79-MEMPRESS.sh b/test/units/TEST-79-MEMPRESS.sh index 4ce73d4c299..2b1de204f7b 100755 --- a/test/units/TEST-79-MEMPRESS.sh +++ b/test/units/TEST-79-MEMPRESS.sh @@ -49,7 +49,17 @@ EOF chmod +x "$SCRIPT" -systemd-run -u "$UNIT" -p Type=exec -p ProtectControlGroups=1 -p DynamicUser=1 -p MemoryPressureWatch=on -p MemoryPressureThresholdSec=123ms -p BindPaths=$SCRIPT --wait "$SCRIPT" +systemd-run \ + -u "$UNIT" \ + -p Type=exec \ + -p ProtectControlGroups=1 \ + -p DynamicUser=1 \ + -p MemoryPressureWatch=on \ + -p MemoryPressureThresholdSec=123ms \ + -p BindPaths=$SCRIPT \ + `# Make sanitizers happy when DynamicUser=1 pulls in instrumented systemd NSS modules` \ + -p EnvironmentFile=-/usr/lib/systemd/systemd-asan-env \ + --wait "$SCRIPT" rm "$SCRIPT"