Commit e5ba367c authored by Russ Cox's avatar Russ Cox

go/build: disable test on nacl (and a few others, unnecessarily)

Fixes build.

Change-Id: Ia71fc031cc8eb575e5ab5323ff4084147d143744
Reviewed-on: https://go-review.googlesource.com/17867Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 691e63b7
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
package build package build
import ( import (
"internal/testenv"
"io" "io"
"os" "os"
"path/filepath" "path/filepath"
...@@ -299,6 +300,7 @@ func TestShellSafety(t *testing.T) { ...@@ -299,6 +300,7 @@ func TestShellSafety(t *testing.T) {
} }
func TestImportVendor(t *testing.T) { func TestImportVendor(t *testing.T) {
testenv.MustHaveGoBuild(t) // really must just have source
ctxt := Default ctxt := Default
ctxt.GOPATH = "" ctxt.GOPATH = ""
p, err := ctxt.Import("golang.org/x/net/http2/hpack", filepath.Join(ctxt.GOROOT, "src/net/http"), AllowVendor) 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) { ...@@ -312,6 +314,7 @@ func TestImportVendor(t *testing.T) {
} }
func TestImportVendorFailure(t *testing.T) { func TestImportVendorFailure(t *testing.T) {
testenv.MustHaveGoBuild(t) // really must just have source
ctxt := Default ctxt := Default
ctxt.GOPATH = "" ctxt.GOPATH = ""
p, err := ctxt.Import("x.com/y/z", filepath.Join(ctxt.GOROOT, "src/net/http"), AllowVendor) p, err := ctxt.Import("x.com/y/z", filepath.Join(ctxt.GOROOT, "src/net/http"), AllowVendor)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment