(t *testing.T)
| 6 | ) |
| 7 | |
| 8 | func TestChildExit(t *testing.T) { |
| 9 | env, procs := testEnv() |
| 10 | |
| 11 | child, err := startChild(env, nil) |
| 12 | if err != nil { |
| 13 | t.Fatal(err) |
| 14 | } |
| 15 | |
| 16 | proc := <-procs |
| 17 | proc.exit(nil) |
| 18 | if err := <-child.result; err != nil { |
| 19 | t.Error("Wait returns non-nil error:", err) |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | func TestChildKill(t *testing.T) { |
| 24 | env, procs := testEnv() |
nothing calls this directly
no test coverage detected
searching dependent graphs…