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:45:10 +0000
commit0d489b80dc9e87013a8c3a650dfc05a0c4dde04a (patch)
tree1dd0c0cf2752da29bcee7bb86057110c4bfbdad4
parent9c7eb68fc6d4bd8ab9a33bc5c1d89d263be1ab1b (diff)
downloadgo-0d489b80dc9e87013a8c3a650dfc05a0c4dde04a.tar.gz
go-0d489b80dc9e87013a8c3a650dfc05a0c4dde04a.zip
[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 <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/+/264020
-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 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()