From: Manlio Perillo Date: Wed, 12 May 2021 13:16:20 +0000 (+0200) Subject: cmd/go/testdata/script: fix test failing on nocgo builders X-Git-Tag: go1.17beta1~172 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=485474d204297ce9ff2b7f6c2a2b0e048c61fb8e;p=gostls13.git cmd/go/testdata/script: fix test failing on nocgo builders The regression test introduced in https://golang.org/cl/318770 broke the the nocgo builders. Update the cgo package used in the test to ensure that it can be build both with cgo enabled and disabled. Change-Id: Iab0486f0b85ac5e5a22fdf8a1998edd50cbb4d96 Reviewed-on: https://go-review.googlesource.com/c/go/+/319210 Trust: Bryan C. Mills Trust: Jay Conrod Reviewed-by: Bryan C. Mills Reviewed-by: Jay Conrod Run-TryBot: Bryan C. Mills TryBot-Result: Go Bot --- diff --git a/src/cmd/go/testdata/script/list_find_nodeps.txt b/src/cmd/go/testdata/script/list_find_nodeps.txt index 55f98f6c6c..e08ce78950 100644 --- a/src/cmd/go/testdata/script/list_find_nodeps.txt +++ b/src/cmd/go/testdata/script/list_find_nodeps.txt @@ -33,6 +33,16 @@ func F() { println(C.INT_MAX) } +-- cgo/pkg_notcgo.go -- +//go:build !cgo +// +build !cgo + +package cgopkg + +func F() { + println(0) +} + -- swig/pkg.go -- package swigpkg