]> Cypherpunks repositories - gostls13.git/commit
net: move cgo-using darwin test to separate package
authorRuss Cox <rsc@golang.org>
Tue, 12 Dec 2023 17:53:32 +0000 (12:53 -0500)
committerGopher Robot <gobot@golang.org>
Tue, 23 Jan 2024 18:09:52 +0000 (18:09 +0000)
commit4085a4893c427a2138e28fe4f16a646e7f571adb
treeb9593a44258aae216c874e4d19020519b5cbc9e2
parent76b8bec6dbea9d56edbb5b2e8ab2fcf100ac1cd0
net: move cgo-using darwin test to separate package

It is a goal / requirement that nothing in the standard library
on darwin require cgo, and this test-only file makes net use
cgo on darwin. Move it elsewhere.

Change-Id: I6c11a8391d3913f73ce0098ba63b29adf5864f93
Reviewed-on: https://go-review.googlesource.com/c/go/+/549255
Reviewed-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Russ Cox <rsc@golang.org>
src/cmd/go/testdata/script/darwin_no_cgo.txt [new file with mode: 0644]
src/go/build/deps_test.go
src/net/internal/cgotest/empty_test.go [new file with mode: 0644]
src/net/internal/cgotest/resstate.go [moved from src/net/cgo_unix_cgo_darwin.go with 89% similarity]