From b581ccd46ef243c6a64c343e79b039022da8a7a2 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 15 Oct 2020 14:19:10 -0700 Subject: [release-branch.go1.14] syscall: use MustHaveExec in TestExec For #41702 For #41703 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 (cherry picked from commit 11cfb48df192c14d185c1cfcaad1ba3e7b84c807) Reviewed-on: https://go-review.googlesource.com/c/go/+/264021 --- src/syscall/exec_unix_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/syscall/exec_unix_test.go b/src/syscall/exec_unix_test.go index 722534af78..7f68319517 100644 --- a/src/syscall/exec_unix_test.go +++ b/src/syscall/exec_unix_test.go @@ -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() -- cgit v1.2.3-54-g00ecf