aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElias Naur <elias.naur@gmail.com>2018-11-30 12:09:59 +0100
committerBryan C. Mills <bcmills@google.com>2018-11-30 14:23:50 +0000
commit96a6bd4bf6281a57c933bdcc1da96a7608cf20d7 (patch)
tree577799bd0109f643a75194c859f3d296b0e484f0 /src
parent2140975ebde164ea1eaa70fc72775c03567f2bc9 (diff)
downloadgo-96a6bd4bf6281a57c933bdcc1da96a7608cf20d7.tar.xz
cmd/go/internal/lockedfile/internal/filelock: fix test on iOS
Change-Id: I0390b382db0ca36de20af0ef15204c5bfc084d3d Reviewed-on: https://go-review.googlesource.com/c/151937 Run-TryBot: Elias Naur <elias.naur@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/cmd/go/internal/lockedfile/internal/filelock/filelock_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/go/internal/lockedfile/internal/filelock/filelock_test.go b/src/cmd/go/internal/lockedfile/internal/filelock/filelock_test.go
index 96f4874378..0ccee07cee 100644
--- a/src/cmd/go/internal/lockedfile/internal/filelock/filelock_test.go
+++ b/src/cmd/go/internal/lockedfile/internal/filelock/filelock_test.go
@@ -8,6 +8,7 @@ package filelock_test
import (
"fmt"
+ "internal/testenv"
"io/ioutil"
"os"
"os/exec"
@@ -183,6 +184,8 @@ func TestRLockExcludesOnlyLock(t *testing.T) {
}
func TestLockNotDroppedByExecCommand(t *testing.T) {
+ testenv.MustHaveExec(t)
+
f, remove := mustTempFile(t)
defer remove()