Skip to content

Commit

Permalink
go/ssa: skip the "constraints" package in TestStdlib
Browse files Browse the repository at this point in the history
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 <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
  • Loading branch information
findleyr committed Sep 24, 2021
1 parent e1e06b8 commit 939195f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion go/ssa/stdlib_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ func TestStdlib(t *testing.T) {
ctxt.GOPATH = "" // disable GOPATH
conf := loader.Config{Build: &ctxt}
for _, path := range buildutil.AllPackages(conf.Build) {
conf.ImportWithTests(path)
// Temporarily skip packages that use generics until supported by go/ssa.
//
// TODO(#48595): revert this once go/ssa supports generics.
if !testenv.UsesGenerics(path) {
conf.ImportWithTests(path)
}
}

iprog, err := conf.Load()
Expand Down

0 comments on commit 939195f

Please sign in to comment.