mirror of
https://github.com/golang/go
synced 2024-11-18 16:04:44 -07:00
go.tools/go/loader: skip TestCgoOption on windows
windows std packages do not use cgo. LGTM=minux R=golang-codereviews, minux CC=golang-codereviews https://golang.org/cl/102460043
This commit is contained in:
parent
81fd812913
commit
a20078a082
@ -138,6 +138,10 @@ func TestStdlib(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestCgoOption(t *testing.T) {
|
||||
if runtime.GOOS == "windows" {
|
||||
// on windows, the net and os/user packages don't use cgo.
|
||||
return
|
||||
}
|
||||
// Test that we can load cgo-using packages with
|
||||
// CGO_ENABLED=[01], which causes go/build to select pure
|
||||
// Go/native implementations, respectively, based on build
|
||||
|
Loading…
Reference in New Issue
Block a user