(t *testing.T)
| 33 | ) |
| 34 | |
| 35 | func 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 | |
| 47 | func TestErrorsWhenUnitAlreadyExists(t *testing.T) { |
| 48 | checkCgroupMode(t) |
no outgoing calls
no test coverage detected
searching dependent graphs…