]> Cypherpunks repositories - gostls13.git/commitdiff
go/build: disable test on nacl (and a few others, unnecessarily)
authorRuss Cox <rsc@golang.org>
Wed, 16 Dec 2015 21:20:03 +0000 (16:20 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 17 Dec 2015 01:43:05 +0000 (01:43 +0000)
Fixes build.

Change-Id: Ia71fc031cc8eb575e5ab5323ff4084147d143744
Reviewed-on: https://go-review.googlesource.com/17867
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/go/build/build_test.go

index d0a2219ebcf90d60bda0dc0842b25336376737ae..07efc14292f4f88dcd78e2df05b04bf76c309d51 100644 (file)
@@ -5,6 +5,7 @@
 package build
 
 import (
+       "internal/testenv"
        "io"
        "os"
        "path/filepath"
@@ -299,6 +300,7 @@ func TestShellSafety(t *testing.T) {
 }
 
 func TestImportVendor(t *testing.T) {
+       testenv.MustHaveGoBuild(t) // really must just have source
        ctxt := Default
        ctxt.GOPATH = ""
        p, err := ctxt.Import("golang.org/x/net/http2/hpack", filepath.Join(ctxt.GOROOT, "src/net/http"), AllowVendor)
@@ -312,6 +314,7 @@ func TestImportVendor(t *testing.T) {
 }
 
 func TestImportVendorFailure(t *testing.T) {
+       testenv.MustHaveGoBuild(t) // really must just have source
        ctxt := Default
        ctxt.GOPATH = ""
        p, err := ctxt.Import("x.com/y/z", filepath.Join(ctxt.GOROOT, "src/net/http"), AllowVendor)