from os/exec/exec_test.go
(t *testing.T, s ...string)
| 20 | |
| 21 | // from os/exec/exec_test.go |
| 22 | func helperCommand(t *testing.T, s ...string) *exec.Cmd { |
| 23 | cs := []string{"-test.run=TestHelperProcess", "--"} |
| 24 | cs = append(cs, s...) |
| 25 | cmd := exec.Command(os.Args[0], cs...) |
| 26 | cmd.Env = []string{"GO_WANT_HELPER_PROCESS=1", "GOCOVERDIR=."} |
| 27 | return cmd |
| 28 | } |
| 29 | |
| 30 | //////////////////////////////////////////////////////////////// |
| 31 |