diff options
author | Fabricio Voznika <fvoznika@google.com> | 2021-05-13 14:41:38 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-05-13 14:44:08 -0700 |
commit | f3478b7516e02ab341324ae1361ea9b019ae4f4e (patch) | |
tree | a691bdc8fb1cffc17c13db3f52f72f0115427fd8 /runsc/cgroup/cgroup_test.go | |
parent | 84f04cc858644e9748a82f33b834a84c8b0fc934 (diff) |
Fix problem with grouped cgroups
cgroup controllers can be grouped together (e.g. cpu,cpuacct) and
that was confusing Cgroup.Install() into thinking that a cgroup
directory was created by the caller, when it had being created by
another controller that is grouped together.
PiperOrigin-RevId: 373661336
Diffstat (limited to 'runsc/cgroup/cgroup_test.go')
-rw-r--r-- | runsc/cgroup/cgroup_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runsc/cgroup/cgroup_test.go b/runsc/cgroup/cgroup_test.go index 02cadeef4..eba40621e 100644 --- a/runsc/cgroup/cgroup_test.go +++ b/runsc/cgroup/cgroup_test.go @@ -60,10 +60,10 @@ var dindMountinfo = ` func TestUninstallEnoent(t *testing.T) { c := Cgroup{ - // set a non-existent name + // Use a non-existent name. Name: "runsc-test-uninstall-656e6f656e740a", + Own: make(map[string]bool), } - c.Own = make(map[string]bool) for key := range controllers { c.Own[key] = true } |