(t *testing.T)
| 39 | } |
| 40 | |
| 41 | func TestChildNotReady(t *testing.T) { |
| 42 | env, procs := testEnv() |
| 43 | |
| 44 | child, err := startChild(env, nil) |
| 45 | if err != nil { |
| 46 | t.Fatal(err) |
| 47 | } |
| 48 | |
| 49 | proc := <-procs |
| 50 | proc.exit(nil) |
| 51 | <-child.result |
| 52 | <-child.exited |
| 53 | |
| 54 | select { |
| 55 | case <-child.ready: |
| 56 | t.Error("Child signals readiness without pipe being closed") |
| 57 | default: |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | func TestChildReady(t *testing.T) { |
| 62 | env, procs := testEnv() |
nothing calls this directly
no test coverage detected
searching dependent graphs…