From: Russ Cox Date: Wed, 16 Dec 2015 21:20:03 +0000 (-0500) Subject: go/build: disable test on nacl (and a few others, unnecessarily) X-Git-Tag: go1.6beta1~45 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e5ba367c10c8d819841da5ec3661d3d20fc1e765;p=gostls13.git go/build: disable test on nacl (and a few others, unnecessarily) Fixes build. Change-Id: Ia71fc031cc8eb575e5ab5323ff4084147d143744 Reviewed-on: https://go-review.googlesource.com/17867 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/go/build/build_test.go b/src/go/build/build_test.go index d0a2219ebc..07efc14292 100644 --- a/src/go/build/build_test.go +++ b/src/go/build/build_test.go @@ -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)