gopls: skip failing tests on wasm/wasip1

Add skips as appropriate to TestFreeRefs and TestDriverConformance.

Also add a skip for a preexisting failure on wasip1: golang/go#64725.

Fixes golang/go#68163
Updates golang/go#64725

Change-Id: I2827160bad6627755f213e4b8b54d53333d2d98d
Reviewed-on: https://go-review.googlesource.com/c/tools/+/594895
Auto-Submit: Robert Findley <rfindley@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
This commit is contained in:
Rob Findley 2024-06-25 17:22:55 +00:00 коммит произвёл Gopher Robot
Родитель dc341221fd
Коммит 850c7c3070
3 изменённых файлов: 9 добавлений и 2 удалений

Просмотреть файл

@ -118,6 +118,10 @@ func TestLoad_NoInitialPackages(t *testing.T) {
}
func TestLoad_MissingInitialPackage(t *testing.T) {
if runtime.GOOS == "wasip1" {
t.Skip("Skipping due to golang/go#64725: fails with EBADF errors")
}
var conf loader.Config
conf.Import("nosuchpkg")
conf.Import("errors")

Просмотреть файл

@ -21,8 +21,8 @@ import (
// TestFreeRefs is a unit test of the free-references algorithm.
func TestFreeRefs(t *testing.T) {
if runtime.GOOS == "js" {
t.Skip("some test imports are unsupported on js")
if runtime.GOOS == "js" || runtime.GOARCH == "wasm" {
t.Skip("some test imports are unsupported on js or wasm")
}
for i, test := range []struct {

Просмотреть файл

@ -17,6 +17,7 @@ import (
"golang.org/x/tools/internal/diff/myers"
"golang.org/x/tools/internal/drivertest"
"golang.org/x/tools/internal/packagesinternal"
"golang.org/x/tools/internal/testenv"
"golang.org/x/tools/internal/testfiles"
"golang.org/x/tools/txtar"
)
@ -28,6 +29,8 @@ func TestMain(m *testing.M) {
}
func TestDriverConformance(t *testing.T) {
testenv.NeedsExec(t)
const workspace = `
-- go.mod --
module example.com/m