]> git.ipfire.org Git - thirdparty/systemd.git/commit
test-cgroup: cleanup test cgroup
authorLuca Boccassi <luca.boccassi@gmail.com>
Tue, 12 Aug 2025 22:59:15 +0000 (23:59 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 13 Aug 2025 01:00:33 +0000 (10:00 +0900)
commit998bb9600e3e3d5f2db93508a69657e197e7f5b7
tree3f9d5036c13d526a6fff8f321cbf1b368f3c9c89
parente1311b10f808bd3a9897cd744e0823bbe1e65fc7
test-cgroup: cleanup test cgroup

One test cgroup gets left behind by the test, as it moves itself
into it. Move itself and back to the original cgroup at the end
and clean up.

This fixes a failure when running the test first as root, and then
as unprivileged (initial cleanup fails as the leftover test cgroup
is owned by root).
src/test/test-cgroup.c