]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: fix assert when running test-cgroup in container
authorLuca Boccassi <luca.boccassi@gmail.com>
Wed, 6 Aug 2025 11:48:34 +0000 (12:48 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 6 Aug 2025 13:09:33 +0000 (14:09 +0100)
commit14cb1fba9130ccb6b8ed315211fe46e5e3f9cc88
tree6ce37a95c60bd91a7921790dc35c7e28b8e4da5b
parent64a4f3110a72351d66f6815bf7b59993a0ed03d7
test: fix assert when running test-cgroup in container

When running in nspawn and thus from the namespaced root cgroup:

Paths for test:
//test-a
//test-b
src/test/test-cgroup.c:77: Assertion failed: Expected "path == test_b", got "/test-b != //test-b"

Use path_simplify() in the test like the code does, so that the results
always match
src/test/test-cgroup.c