]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1.14] syscall: use MustHaveExec in TestExec
authorIan Lance Taylor <iant@golang.org>
Thu, 15 Oct 2020 21:19:10 +0000 (14:19 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 20 Oct 2020 23:44:31 +0000 (23:44 +0000)
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

src/syscall/exec_unix_test.go

index 722534af789b1b19e27bdce68a9d6b2aa1bcff6c..7f68319517096614d582d15cf036e90bd82f2e9f 100644 (file)
@@ -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()