aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2020-10-15 14:19:10 -0700
committerIan Lance Taylor <iant@golang.org>2020-10-20 23:44:31 +0000
commitb581ccd46ef243c6a64c343e79b039022da8a7a2 (patch)
tree49ace6bbfdfbbbc62cbd043250f42075c416cadd
parentd9dab4f15e7cfc9553e3abd70cbe2a1a8e3d5547 (diff)
downloadgo-b581ccd46ef243c6a64c343e79b039022da8a7a2.tar.gz
go-b581ccd46ef243c6a64c343e79b039022da8a7a2.zip
[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 <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com> (cherry picked from commit 11cfb48df192c14d185c1cfcaad1ba3e7b84c807) Reviewed-on: https://go-review.googlesource.com/c/go/+/264021
-rw-r--r--src/syscall/exec_unix_test.go1
1 files changed, 1 insertions, 0 deletions
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()