From e3e5aae018b42b4409446d64a034e6bb119808fd Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Mon, 28 Dec 2015 15:41:34 -0500 Subject: [PATCH] go/types: in TestStdlib, skip 2 packages that use vendoring (gcimporter does not support vendoring---see issue #13756) Change-Id: Ief4101e4f33007d497ed1519845febfcffdded38 Reviewed-on: https://go-review.googlesource.com/18193 Reviewed-by: Alan Donovan --- go/types/stdlib_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/go/types/stdlib_test.go b/go/types/stdlib_test.go index 6f206a227f..7554f91578 100644 --- a/go/types/stdlib_test.go +++ b/go/types/stdlib_test.go @@ -189,6 +189,13 @@ func typecheck(t *testing.T, path string, filenames []string) { files = append(files, file) } + // gcimporter doesn't support vendored imports. + // TODO(gri): fix. + if strings.HasSuffix(path, "src/cmd/internal/objfile") || + strings.HasSuffix(path, "src/net/http") { + return + } + // typecheck package files var conf Config conf.Error = func(err error) { t.Error(err) }