Skip to content

Commit 939195f

Browse files
committed
go/ssa: skip the "constraints" package in TestStdlib
go/ssa doesn't yet support generics, so the "constraints" package causes this test to fail. Updates golang/go#48595 Change-Id: I11c5a944bffba0c0398cd48ffca5d80fbede4332 Reviewed-on: https://go-review.googlesource.com/c/tools/+/352051 Trust: Robert Findley <[email protected]> Run-TryBot: Robert Findley <[email protected]> gopls-CI: kokoro <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Rebecca Stambler <[email protected]>
1 parent e1e06b8 commit 939195f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

go/ssa/stdlib_test.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,12 @@ func TestStdlib(t *testing.T) {
5151
ctxt.GOPATH = "" // disable GOPATH
5252
conf := loader.Config{Build: &ctxt}
5353
for _, path := range buildutil.AllPackages(conf.Build) {
54-
conf.ImportWithTests(path)
54+
// Temporarily skip packages that use generics until supported by go/ssa.
55+
//
56+
// TODO(#48595): revert this once go/ssa supports generics.
57+
if !testenv.UsesGenerics(path) {
58+
conf.ImportWithTests(path)
59+
}
5560
}
5661

5762
iprog, err := conf.Load()

0 commit comments

Comments
 (0)