Skip to content

Commit 9207707

Browse files
committed
go/internal/gcimporter: skip TestIExportData_stdlib on go1.18
This test will fail on Go 1.18 once standard library changes are introduced that use generics. Skip it until iexport.go has been updated to support generics. Updates golang/go#48392 Change-Id: I0f779689daaf2bc3127affff633c883ed9d7289b Reviewed-on: https://go-review.googlesource.com/c/tools/+/349954 Trust: Robert Findley <[email protected]> Run-TryBot: Robert Findley <[email protected]> Reviewed-by: Robert Griesemer <[email protected]> gopls-CI: kokoro <[email protected]> TryBot-Result: Go Bot <[email protected]>
1 parent cd7c003 commit 9207707

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

go/internal/gcimporter/iexport_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import (
3131
"golang.org/x/tools/go/buildutil"
3232
"golang.org/x/tools/go/internal/gcimporter"
3333
"golang.org/x/tools/go/loader"
34+
"golang.org/x/tools/internal/testenv"
3435
)
3536

3637
func readExportFile(filename string) ([]byte, error) {
@@ -63,6 +64,7 @@ func iexport(fset *token.FileSet, pkg *types.Package) ([]byte, error) {
6364
}
6465

6566
func TestIExportData_stdlib(t *testing.T) {
67+
testenv.SkipAfterGo1Point(t, 17)
6668
if runtime.Compiler == "gccgo" {
6769
t.Skip("gccgo standard library is inaccessible")
6870
}

0 commit comments

Comments
 (0)