Skip to content

Commit b581ccd

Browse files
[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 <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Cherry Zhang <[email protected]> (cherry picked from commit 11cfb48) Reviewed-on: https://go-review.googlesource.com/c/go/+/264021
1 parent d9dab4f commit b581ccd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/syscall/exec_unix_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ func TestForeground(t *testing.T) {
219219

220220
// TestExec is for issue #41702.
221221
func TestExec(t *testing.T) {
222+
testenv.MustHaveExec(t)
222223
cmd := exec.Command(os.Args[0], "-test.run=TestExecHelper")
223224
cmd.Env = append(os.Environ(), "GO_WANT_HELPER_PROCESS=2")
224225
o, err := cmd.CombinedOutput()

0 commit comments

Comments
 (0)