From: Michal Koutný Date: Fri, 17 Jan 2025 17:00:25 +0000 (+0100) Subject: test-cgroup-util: Skip procs analysis without cgroupfs X-Git-Tag: v258-rc1~1104^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b78003c793c0abb04e33100e0035df5de7725c9a;p=thirdparty%2Fsystemd.git test-cgroup-util: Skip procs analysis without cgroupfs cg_pidref_get_path() cannot work (current implementaion) without cgroupfs (when it checks unified or not setup). Similarly, cg_pidref_get_unit() assumes all processes are part of a unit. So carry out the test only when running on a systemd setup. --- diff --git a/src/test/test-cgroup-util.c b/src/test/test-cgroup-util.c index 6b4c9b5aa78..8743bd1cc74 100644 --- a/src/test/test-cgroup-util.c +++ b/src/test/test-cgroup-util.c @@ -198,7 +198,7 @@ TEST(get_paths, .sd_booted = true) { log_info("Root = %s", a); } -TEST(proc) { +TEST(proc, .sd_booted = true) { _cleanup_closedir_ DIR *d = NULL; int r;