Skip to content

Commit 957f6a1

Browse files
0introgopherbot
authored andcommitted
go/packages: skip TestCompiledGoFilesIncludesDepsErrors without cgo
TestCompiledGoFilesIncludesDepsErrors uses cgo to produce a dependency error. Plan 9 does not support cgo, so skip it when cgo is unavailable, like the other cgo tests. Change-Id: I2e6e2c514cadbc0ace9778ad0e93a3d7b3f3abca Reviewed-on: https://go-review.googlesource.com/c/tools/+/794842 Reviewed-by: Alan Donovan <adonovan@google.com> Auto-Submit: Alan Donovan <adonovan@google.com> Reviewed-by: Michael Matloob <matloob@google.com> Reviewed-by: Michael Matloob <matloob@golang.org> LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
1 parent 6e4d617 commit 957f6a1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

go/packages/packages_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3573,6 +3573,7 @@ func main() {
35733573
// See golang/go#78083.
35743574
func TestCompiledGoFilesIncludesDepsErrors(t *testing.T) {
35753575
testenv.NeedsGoPackages(t)
3576+
testenv.NeedsTool(t, "cgo")
35763577

35773578
dir := writeTree(t, `
35783579
-- go.mod --

0 commit comments

Comments
 (0)