]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/internal/lockedfile/internal/filelock: fix test on iOS
authorElias Naur <elias.naur@gmail.com>
Fri, 30 Nov 2018 11:09:59 +0000 (12:09 +0100)
committerBryan C. Mills <bcmills@google.com>
Fri, 30 Nov 2018 14:23:50 +0000 (14:23 +0000)
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>
src/cmd/go/internal/lockedfile/internal/filelock/filelock_test.go

index 96f4874378fc64b1fa1c2a26cd79513307ece3d0..0ccee07ceebd5fe6214d78be322894f863d4d062 100644 (file)
@@ -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()