]> git.ipfire.org Git - thirdparty/systemd.git/commit
test-cgroup-mask: unit_get_sibling_mask ignores cgroup_supported 176/head
authorFilipe Brandenburger <filbranden@google.com>
Fri, 12 Jun 2015 01:23:06 +0000 (18:23 -0700)
committerFilipe Brandenburger <filbranden@google.com>
Fri, 12 Jun 2015 03:12:01 +0000 (20:12 -0700)
commit2bf25eeff8f27ddcdba8b2a177f77e68d0bec6ed
tree5e79fde66088513a63d2af2e73e8242b1e82a830
parented810b68d323a58b6c36fd00d1118699466ca34a
test-cgroup-mask: unit_get_sibling_mask ignores cgroup_supported

The result of unit_get_sibling_mask returns bits for the sibling cgroups
even if they are not supported in the local system.

I caught this on a machine where my kernel was misconfigured with
CONFIG_MEMCG unset, but the rest of the cgroup infrastructure enabled.

Tested with `make check` on a host running a kernel where CONFIG_MEMCG
is not set.
src/test/test-cgroup-mask.c