From: Ian Lance Taylor Date: Thu, 15 Oct 2020 21:19:10 +0000 (-0700) Subject: syscall: use MustHaveExec in TestExec X-Git-Tag: go1.16beta1~692 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=11cfb48df192c14d185c1cfcaad1ba3e7b84c807;p=gostls13.git syscall: use MustHaveExec in TestExec For #41702 Change-Id: Ib2b15e52aa1fef2f5e644b316c726150252fa9f8 Reviewed-on: https://go-review.googlesource.com/c/go/+/262738 Trust: Ian Lance Taylor Run-TryBot: Ian Lance Taylor TryBot-Result: Go Bot Reviewed-by: Cherry Zhang --- diff --git a/src/syscall/exec_unix_test.go b/src/syscall/exec_unix_test.go index d005bba610..4431f7fc90 100644 --- a/src/syscall/exec_unix_test.go +++ b/src/syscall/exec_unix_test.go @@ -247,6 +247,7 @@ func TestInvalidExec(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()