mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
net: disable more ipv6 tests
R=agl, agl1 CC=golang-dev https://golang.org/cl/153050
This commit is contained in:
parent
b4a8b353c4
commit
e23f75b3c4
1 changed files with 10 additions and 6 deletions
|
|
@ -88,11 +88,13 @@ func doTest(t *testing.T, network, listenaddr, dialaddr string) {
|
||||||
|
|
||||||
func TestTCPServer(t *testing.T) {
|
func TestTCPServer(t *testing.T) {
|
||||||
doTest(t, "tcp", "0.0.0.0", "127.0.0.1");
|
doTest(t, "tcp", "0.0.0.0", "127.0.0.1");
|
||||||
|
doTest(t, "tcp", "", "127.0.0.1");
|
||||||
|
if kernelSupportsIPv6() {
|
||||||
doTest(t, "tcp", "[::]", "[::ffff:127.0.0.1]");
|
doTest(t, "tcp", "[::]", "[::ffff:127.0.0.1]");
|
||||||
doTest(t, "tcp", "[::]", "127.0.0.1");
|
doTest(t, "tcp", "[::]", "127.0.0.1");
|
||||||
doTest(t, "tcp", "", "127.0.0.1");
|
|
||||||
doTest(t, "tcp", "0.0.0.0", "[::ffff:127.0.0.1]");
|
doTest(t, "tcp", "0.0.0.0", "[::ffff:127.0.0.1]");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func TestUnixServer(t *testing.T) {
|
func TestUnixServer(t *testing.T) {
|
||||||
os.Remove("/tmp/gotest.net");
|
os.Remove("/tmp/gotest.net");
|
||||||
|
|
@ -150,11 +152,13 @@ func doTestPacket(t *testing.T, network, listenaddr, dialaddr string) {
|
||||||
|
|
||||||
func TestUDPServer(t *testing.T) {
|
func TestUDPServer(t *testing.T) {
|
||||||
doTestPacket(t, "udp", "0.0.0.0", "127.0.0.1");
|
doTestPacket(t, "udp", "0.0.0.0", "127.0.0.1");
|
||||||
|
doTestPacket(t, "udp", "", "127.0.0.1");
|
||||||
|
if kernelSupportsIPv6() {
|
||||||
doTestPacket(t, "udp", "[::]", "[::ffff:127.0.0.1]");
|
doTestPacket(t, "udp", "[::]", "[::ffff:127.0.0.1]");
|
||||||
doTestPacket(t, "udp", "[::]", "127.0.0.1");
|
doTestPacket(t, "udp", "[::]", "127.0.0.1");
|
||||||
doTestPacket(t, "udp", "", "127.0.0.1");
|
|
||||||
doTestPacket(t, "udp", "0.0.0.0", "[::ffff:127.0.0.1]");
|
doTestPacket(t, "udp", "0.0.0.0", "[::ffff:127.0.0.1]");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func TestUnixDatagramServer(t *testing.T) {
|
func TestUnixDatagramServer(t *testing.T) {
|
||||||
os.Remove("/tmp/gotest1.net");
|
os.Remove("/tmp/gotest1.net");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue