]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
gunit/test-015: Populate subtree_control for leaf cgroup
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Tue, 20 Dec 2022 16:09:19 +0000 (21:39 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 6 Jan 2023 15:07:29 +0000 (08:07 -0700)
commit328ec5e8e4f00790cb91f81ff53f2cdd42d0106f
treeec50b34b83988223aa96872f304823195c9e25dd
parentc567528cdb9c8394c9c61c906e68daa0d91a80d8
gunit/test-015: Populate subtree_control for leaf cgroup

We no more rely on the cgroup's parent subtree_control file to verify
if a controller is enabled for a cgroup. So, populate the leaf/child
cgroups with subtree_control file similar to the parent cgroup.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
tests/gunit/015-cgroupv2_controller_enabled.cpp