MCPcopy Create free account
hub / github.com/containerd/cgroups / setupForNewSystemd

Function setupForNewSystemd

cgroup2/manager_test.go:35–45  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

33)
34
35func setupForNewSystemd(t *testing.T) (cmd *exec.Cmd, group string) {
36 cmd = exec.Command("cat")
37 err := cmd.Start()
38 require.NoError(t, err, "failed to start cat process")
39 proc := cmd.Process
40 require.NotNil(t, proc, "process was nil")
41
42 group = fmt.Sprintf("testing-watcher-%d.scope", proc.Pid)
43
44 return
45}
46
47func TestErrorsWhenUnitAlreadyExists(t *testing.T) {
48 checkCgroupMode(t)

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…