summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2018-01-10 18:06:23 +0100
committerSven Eden <yamakuzure@gmx.net>2018-01-10 18:06:23 +0100
commite68c14bfa4ba10f57e0623f52b793b4583c45128 (patch)
tree46e3adc0e0f0d0f999c8ef25c7339d7739d17239 /src/test
parentf76ab47bddd383117fbd5fd93a618ca764745342 (diff)
Prep 235: Make cgroups2 available, hybrid mode already works.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-cgroup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/test-cgroup.c b/src/test/test-cgroup.c
index 509946250..e56473a63 100644
--- a/src/test/test-cgroup.c
+++ b/src/test/test-cgroup.c
@@ -54,7 +54,11 @@ int main(int argc, char*argv[]) {
free(path);
assert_se(cg_get_path(SYSTEMD_CGROUP_CONTROLLER, "/test-b/test-d", NULL, &path) == 0);
+#if 0 /// elogind uses its own name
assert_se(path_equal(path, "/sys/fs/cgroup/systemd/test-b/test-d"));
+#else
+ assert_se(path_equal(path, "/sys/fs/cgroup/elogind/test-b/test-d"));
+#endif // 0
free(path);
assert_se(cg_is_empty(SYSTEMD_CGROUP_CONTROLLER, "/test-a") > 0);