Skip to content

Commit 1edcfe7

Browse files
committed
gopls/internal/regtest/diagnostics: require cgo for TestGoListErrors
Fixes golang/go#58103 Change-Id: I378496e5ed791e33932c58d88cfb1f37ff125936 Reviewed-on: https://go-review.googlesource.com/c/tools/+/463686 Reviewed-by: Bryan Mills <bcmills@google.com> Run-TryBot: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
1 parent f052158 commit 1edcfe7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gopls/internal/regtest/diagnostics/golist_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ import (
99

1010
. "golang.org/x/tools/gopls/internal/lsp/regtest"
1111
"golang.org/x/tools/gopls/internal/lsp/source"
12+
"golang.org/x/tools/internal/testenv"
1213
)
1314

1415
func TestGoListErrors(t *testing.T) {
16+
testenv.NeedsTool(t, "cgo")
17+
1518
const src = `
1619
-- go.mod --
1720
module a.com

0 commit comments

Comments
 (0)