From: Luca Boccassi Date: Mon, 29 Jun 2026 11:02:41 +0000 (+0100) Subject: test: use /run/ for temporary files in TEST-07-PID1.issue-14566 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=682a42891f81cf6346adbcdf6fc4061923777349;p=thirdparty%2Fsystemd.git test: use /run/ for temporary files in TEST-07-PID1.issue-14566 And delete the file before starting, to be safe against reruns Follow-up for c1566ef0d22ed786b9ecf4c476e53b8a91e67578 --- diff --git a/test/integration-tests/TEST-07-PID1/TEST-07-PID1.units/issue14566-repro.sh b/test/integration-tests/TEST-07-PID1/TEST-07-PID1.units/issue14566-repro.sh index ec0268e8916..6a85ce608fe 100755 --- a/test/integration-tests/TEST-07-PID1/TEST-07-PID1.units/issue14566-repro.sh +++ b/test/integration-tests/TEST-07-PID1/TEST-07-PID1.units/issue14566-repro.sh @@ -2,6 +2,6 @@ # SPDX-License-Identifier: LGPL-2.1-or-later sleep infinity & -echo $! >/leakedtestpid +echo $! >/run/leakedtestpid systemd-notify --ready wait $! diff --git a/test/units/TEST-07-PID1.issue-14566.sh b/test/units/TEST-07-PID1.issue-14566.sh index 05fade9c4c4..66d07bab84d 100755 --- a/test/units/TEST-07-PID1.issue-14566.sh +++ b/test/units/TEST-07-PID1.issue-14566.sh @@ -13,10 +13,11 @@ if [[ -v ASAN_OPTIONS ]]; then exit 0 fi +rm -f /run/leakedtestpid systemctl start issue14566-repro systemctl status issue14566-repro -leaked_pid=$(cat /leakedtestpid) +leaked_pid=$(cat /run/leakedtestpid) systemctl stop issue14566-repro timeout 30 bash -c 'while systemctl is-active issue14566-repro; do sleep .5; done'