From: Yu Watanabe Date: Wed, 26 Apr 2023 14:56:50 +0000 (+0900) Subject: test: add test case for systemd-update-utmp vs daemon-reexec X-Git-Tag: v254-rc1~391^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F27173%2Fhead;p=thirdparty%2Fsystemd.git test: add test case for systemd-update-utmp vs daemon-reexec --- diff --git a/test/units/testsuite-01.sh b/test/units/testsuite-01.sh index 91dd47ca145..475eaa2923d 100755 --- a/test/units/testsuite-01.sh +++ b/test/units/testsuite-01.sh @@ -44,4 +44,17 @@ systemctl daemon-reload # of systemd-analyze blame. See issue #27187. systemd-analyze blame +# Test for 'systemd-update-utmp runlevel' vs 'systemctl daemon-reexec'. +# See issue #27163. +# shellcheck disable=SC2034 +for _ in {0..10}; do + systemctl daemon-reexec & + pid_reexec=$! + # shellcheck disable=SC2034 + for _ in {0..10}; do + SYSTEMD_LOG_LEVEL=debug /usr/lib/systemd/systemd-update-utmp runlevel + done + wait "$pid_reexec" +done + echo OK >/testok