1
0
mirror of https://github.com/golang/go synced 2024-11-19 01:04:40 -07:00

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>
This commit is contained in:
Alan Donovan 2015-12-28 15:41:34 -05:00
parent f75338cbc6
commit e3e5aae018

View File

@ -189,6 +189,13 @@ func typecheck(t *testing.T, path string, filenames []string) {
files = append(files, file) 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 // typecheck package files
var conf Config var conf Config
conf.Error = func(err error) { t.Error(err) } conf.Error = func(err error) { t.Error(err) }