Skip to content

Commit

Permalink
[release-branch.go1.14] syscall: use MustHaveExec in TestExec
Browse files Browse the repository at this point in the history
For #41702
For #41703

Change-Id: Ib2b15e52aa1fef2f5e644b316c726150252fa9f8
Reviewed-on: https://go-review.googlesource.com/c/go/+/262738
Trust: Ian Lance Taylor <[email protected]>
Run-TryBot: Ian Lance Taylor <[email protected]>
TryBot-Result: Go Bot <[email protected]>
Reviewed-by: Cherry Zhang <[email protected]>
(cherry picked from commit 11cfb48)
Reviewed-on: https://go-review.googlesource.com/c/go/+/264021
  • Loading branch information
ianlancetaylor committed Oct 20, 2020
1 parent d9dab4f commit b581ccd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/syscall/exec_unix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ func TestForeground(t *testing.T) {

// TestExec is for issue #41702.
func TestExec(t *testing.T) {
testenv.MustHaveExec(t)
cmd := exec.Command(os.Args[0], "-test.run=TestExecHelper")
cmd.Env = append(os.Environ(), "GO_WANT_HELPER_PROCESS=2")
o, err := cmd.CombinedOutput()
Expand Down

0 comments on commit b581ccd

Please sign in to comment.