(t *testing.T)
| 21 | } |
| 22 | |
| 23 | func TestChildKill(t *testing.T) { |
| 24 | env, procs := testEnv() |
| 25 | |
| 26 | child, err := startChild(env, nil) |
| 27 | if err != nil { |
| 28 | t.Fatal(err) |
| 29 | } |
| 30 | |
| 31 | proc := <-procs |
| 32 | |
| 33 | go child.Kill() |
| 34 | if sig := proc.recvSignal(nil); sig != os.Kill { |
| 35 | t.Errorf("Received %v instead of os.Kill", sig) |
| 36 | } |
| 37 | |
| 38 | proc.exit(nil) |
| 39 | } |
| 40 | |
| 41 | func TestChildNotReady(t *testing.T) { |
| 42 | env, procs := testEnv() |
nothing calls this directly
no test coverage detected
searching dependent graphs…