Merge branch '16265-security-updates' into dependabot/bundler/apps/workbench/loofah...
[arvados.git] / lib / crunchrun / cgroup_test.go
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 package crunchrun
6
7 import (
8         . "gopkg.in/check.v1"
9 )
10
11 type CgroupSuite struct{}
12
13 var _ = Suite(&CgroupSuite{})
14
15 func (s *CgroupSuite) TestFindCgroup(c *C) {
16         for _, s := range []string{"devices", "cpu", "cpuset"} {
17                 g := findCgroup(s)
18                 c.Check(g, Not(Equals), "")
19                 c.Logf("cgroup(%q) == %q", s, g)
20         }
21 }