Skip to content

Commit f111c72

Browse files
committed
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 <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 9f9b7e3 commit f111c72

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

go/callgraph/rta/rta_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323
"golang.org/x/tools/go/ssa"
2424
"golang.org/x/tools/go/ssa/ssautil"
2525
"golang.org/x/tools/internal/aliases"
26+
"golang.org/x/tools/internal/testenv"
2627
"golang.org/x/tools/internal/testfiles"
2728
"golang.org/x/tools/txtar"
2829
)
@@ -85,6 +86,8 @@ func TestRTA(t *testing.T) {
8586

8687
// loadPackages unpacks the archive to a temporary directory and loads all packages within it.
8788
func loadPackages(t *testing.T, archive string) []*packages.Package {
89+
testenv.NeedsGoPackages(t)
90+
8891
ar, err := txtar.ParseFile(archive)
8992
if err != nil {
9093
t.Fatal(err)

0 commit comments

Comments
 (0)