mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
net: disable "tcp" test on openbsd
Doing a socket/listen on an unspecified address with an unspecified address family is likely to result in an AF_INET6 socket on an IPv6 capable system, which under OpenBSD means IPv6 only - not IPv4 *and* IPv6. In this case trying to connect to this socket from an IPv4 loopback address is not going to end well. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4807057
This commit is contained in:
parent
75d337e84b
commit
d130611f45
2 changed files with 8 additions and 1 deletions
|
|
@ -115,7 +115,9 @@ func doTest(t *testing.T, network, listenaddr, dialaddr string) {
|
|||
}
|
||||
|
||||
func TestTCPServer(t *testing.T) {
|
||||
doTest(t, "tcp", "", "127.0.0.1")
|
||||
if syscall.OS != "openbsd" {
|
||||
doTest(t, "tcp", "", "127.0.0.1")
|
||||
}
|
||||
doTest(t, "tcp", "0.0.0.0", "127.0.0.1")
|
||||
doTest(t, "tcp", "127.0.0.1", "127.0.0.1")
|
||||
doTest(t, "tcp4", "", "127.0.0.1")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue