From f111c724269449a4561b2a8e8e5dd6ba35eb007e Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Fri, 6 Sep 2024 18:01:37 -0400 Subject: [PATCH] go/callgraph/rta: skip test on js platform (Yesterday's CL 609576 added a dependency on packages.Load.) Fixes golang/go#69299 Change-Id: Id858bbbb347ef137e053669b2fdef9522d057776 Reviewed-on: https://go-review.googlesource.com/c/tools/+/611576 Reviewed-by: Dmitri Shuralyov LUCI-TryBot-Result: Go LUCI Reviewed-by: Dmitri Shuralyov --- go/callgraph/rta/rta_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/go/callgraph/rta/rta_test.go b/go/callgraph/rta/rta_test.go index 1fc32c64252..49e21330738 100644 --- a/go/callgraph/rta/rta_test.go +++ b/go/callgraph/rta/rta_test.go @@ -23,6 +23,7 @@ import ( "golang.org/x/tools/go/ssa" "golang.org/x/tools/go/ssa/ssautil" "golang.org/x/tools/internal/aliases" + "golang.org/x/tools/internal/testenv" "golang.org/x/tools/internal/testfiles" "golang.org/x/tools/txtar" ) @@ -85,6 +86,8 @@ func TestRTA(t *testing.T) { // loadPackages unpacks the archive to a temporary directory and loads all packages within it. func loadPackages(t *testing.T, archive string) []*packages.Package { + testenv.NeedsGoPackages(t) + ar, err := txtar.ParseFile(archive) if err != nil { t.Fatal(err)