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 <adonovan@google.com>
diff --git a/go/types/stdlib_test.go b/go/types/stdlib_test.go
index 6f206a2..7554f91 100644
--- a/go/types/stdlib_test.go
+++ b/go/types/stdlib_test.go
@@ -189,6 +189,13 @@
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) }