Skip to content

Commit 0d489b8

Browse files
[release-branch.go1.15] syscall: use MustHaveExec in TestExec
For #41702 For #41704 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/+/264020
1 parent 9c7eb68 commit 0d489b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/syscall/exec_unix_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ func TestInvalidExec(t *testing.T) {
247247

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

0 commit comments

Comments
 (0)