Skip to content

Commit

Permalink
go/callgraph/rta: skip test on js platform
Browse files Browse the repository at this point in the history
(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]>
  • Loading branch information
adonovan committed Sep 6, 2024
1 parent 9f9b7e3 commit f111c72
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions go/callgraph/rta/rta_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit f111c72

Please sign in to comment.