1
0
mirror of https://github.com/golang/go synced 2024-11-19 22:04:44 -07:00
go/src/net
Mikio Hara 57bc7a0434 net: fix TestDialGoogle with -ipv6 when CGO_ENABLED=0
Under some dial tests that require external network connectivity, we
must prevent application traffic but must not interfere with control
plane traffic such as DNS message exchange. But test helper function
disableSocketConnect prevents both application and control plane traffic
unconditionally and makes some dial tests with -ipv6 fail when
CGO_ENABLED=0.

This change makes disableSocketConnect take a look at not only address
family but socket type for fixing some dial tests with -ipv6 when
CGO_ENBALED=0.

Change-Id: I32241d9592d31483424bb5e69cb4d56f3fc20312
Reviewed-on: https://go-review.googlesource.com/8743
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2015-04-16 00:44:52 +00:00
..
http net/http/cgi: skip fork test on darwin/arm64 2015-04-13 11:51:53 +00:00
internal/socktest net/internal/socktest: add hook for Listen, failed system call counters 2015-04-15 11:03:50 +00:00
mail all: use "reports whether" in place of "returns true if(f)" 2015-03-18 15:14:06 +00:00
rpc net/rpc: document that the type must be exported, not just the methods 2015-04-08 18:34:35 +00:00
smtp net/smtp: document SendMail more 2015-02-07 22:23:10 +00:00
testdata
textproto net/textproto: turn an ancient DoS BUG annotation into a comment 2014-12-16 04:17:30 +00:00
url net/url: allow Parse, ParseRequestURI to parse ipv6 zone identifiers in URIs 2015-04-07 14:24:23 +00:00
cgo_android.go
cgo_bsd.go net: remove solaris tag from cgo 2015-01-29 10:07:21 +00:00
cgo_linux.go
cgo_netbsd.go
cgo_openbsd.go
cgo_stub.go net: LookupHost and Resolve{TCP,UDP,IP}Addr should use zone from getaddrinfo 2015-03-08 09:58:11 +00:00
cgo_unix_test.go
cgo_unix.go net: LookupHost and Resolve{TCP,UDP,IP}Addr should use zone from getaddrinfo 2015-03-08 09:58:11 +00:00
conn_test.go net: fix tester goroutine leakage in tests 2015-04-07 03:26:03 +00:00
dial_gen.go net: dialChannel should not treat an expired deadline as noDeadline. 2015-04-06 01:03:31 +00:00
dial_test.go net: deflake dual IP stack tests 2015-04-07 13:32:28 +00:00
dial.go net: make multi-IP resolution more flexible. 2015-04-10 09:03:25 +00:00
dialgoogle_test.go net: deflake TestDialGoogle, TestResolveDialGoogle 2015-04-03 01:50:30 +00:00
dnsclient_test.go
dnsclient_unix_test.go net: fix data race in benchmarks 2015-04-01 22:02:41 +00:00
dnsclient_unix.go net: LookupHost and Resolve{TCP,UDP,IP}Addr should use zone from getaddrinfo 2015-03-08 09:58:11 +00:00
dnsclient.go net: document that DNSError.Timeout and Temporary are unreliable 2015-04-13 20:41:50 +00:00
dnsconfig_unix_test.go
dnsconfig_unix.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
dnsmsg_test.go net: case insensitivity of DNS labels in built-in stub resolver 2015-02-03 10:29:50 +00:00
dnsmsg.go
dnsname_test.go net: fix data race in benchmarks 2015-04-01 22:02:41 +00:00
example_test.go
fd_mutex_test.go
fd_mutex.go
fd_plan9.go net: remove full stack test cases for IPConn 2015-01-29 10:21:44 +00:00
fd_poll_nacl.go net: remove the dregs of old built-in poll server 2015-02-04 10:16:38 +00:00
fd_poll_runtime.go net: remove the dregs of old built-in poll server 2015-02-04 10:16:38 +00:00
fd_posix_test.go net: don't return io.EOF on reading data from datagram, raw sockets on windows 2015-01-01 05:21:32 +00:00
fd_posix.go net: don't return io.EOF on reading data from datagram, raw sockets on windows 2015-01-01 05:21:32 +00:00
fd_unix.go net: add socket system call hooks for testing 2015-03-31 23:07:42 +00:00
fd_windows.go net: add socket system call hooks for testing 2015-03-31 23:07:42 +00:00
file_plan9.go
file_stub.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
file_test.go net: simplify test helpers 2015-03-28 08:21:10 +00:00
file_unix.go net: add socket system call hooks for testing 2015-03-31 23:07:42 +00:00
file_windows.go
hook_cloexec.go net: add socket system call hooks for testing 2015-03-31 23:07:42 +00:00
hook_plan9.go net: deflake TestDialTimeout 2015-04-02 01:04:49 +00:00
hook_unix.go net: add Listen system call hook for testing 2015-04-15 11:47:49 +00:00
hook_windows.go net: add Listen system call hook for testing 2015-04-15 11:47:49 +00:00
hook.go net: move testHookSetKeepAlive into hook.go 2015-04-07 03:02:10 +00:00
hosts_test.go all: don't refer to code.google.com/p/go{,-wiki}/ 2015-02-06 14:41:47 +00:00
hosts.go
interface_bsd_test.go
interface_bsd.go net, syscall: more accurate parsers for routing messages on BSD variants 2015-02-20 04:33:28 +00:00
interface_darwin.go net, syscall: more accurate parsers for routing messages on BSD variants 2015-02-20 04:33:28 +00:00
interface_dragonfly.go
interface_freebsd.go net, syscall: more accurate parsers for routing messages on BSD variants 2015-02-20 04:33:28 +00:00
interface_linux_test.go
interface_linux.go net: make multi-IP resolution more flexible. 2015-04-10 09:03:25 +00:00
interface_netbsd.go
interface_openbsd.go
interface_stub.go
interface_test.go net: fix data race in benchmarks 2015-04-01 22:02:41 +00:00
interface_unix_test.go
interface_windows.go net: make multi-IP resolution more flexible. 2015-04-10 09:03:25 +00:00
interface.go
ip_test.go net: fix data race in benchmarks 2015-04-01 22:02:41 +00:00
ip.go all: use "reports whether" in place of "returns true if(f)" 2015-03-18 15:14:06 +00:00
ipraw_test.go net: deflake dual IP stack tests 2015-04-07 13:32:28 +00:00
iprawsock_plan9.go
iprawsock_posix.go net: make multi-IP resolution more flexible. 2015-04-10 09:03:25 +00:00
iprawsock.go net: make multi-IP resolution more flexible. 2015-04-10 09:03:25 +00:00
ipsock_plan9.go
ipsock_posix.go net: add socket system call hooks for testing 2015-03-31 23:07:42 +00:00
ipsock_test.go net: make multi-IP resolution more flexible. 2015-04-10 09:03:25 +00:00
ipsock.go net: make multi-IP resolution more flexible. 2015-04-10 09:03:25 +00:00
lookup_plan9.go net: LookupHost and Resolve{TCP,UDP,IP}Addr should use zone from getaddrinfo 2015-03-08 09:58:11 +00:00
lookup_stub.go net: LookupHost and Resolve{TCP,UDP,IP}Addr should use zone from getaddrinfo 2015-03-08 09:58:11 +00:00
lookup_test.go net: deflake dual IP stack tests 2015-04-07 13:32:28 +00:00
lookup_unix.go net: LookupHost and Resolve{TCP,UDP,IP}Addr should use zone from getaddrinfo 2015-03-08 09:58:11 +00:00
lookup_windows_test.go
lookup_windows.go net: LookupHost and Resolve{TCP,UDP,IP}Addr should use zone from getaddrinfo 2015-03-08 09:58:11 +00:00
lookup.go cmd/go: cache results of HTTP requests done during meta tag discovery 2015-04-13 07:08:00 +00:00
mac_test.go
mac.go
main_cloexec_test.go net: add socket system call hooks for testing 2015-03-31 23:07:42 +00:00
main_plan9_test.go net: deflake TestDialGoogle, TestResolveDialGoogle 2015-04-03 01:50:30 +00:00
main_posix_test.go net: fix TestDialGoogle with -ipv6 when CGO_ENABLED=0 2015-04-16 00:44:52 +00:00
main_test.go net: add Listen system call hook for testing 2015-04-15 11:47:49 +00:00
main_unix_test.go net: add Listen system call hook for testing 2015-04-15 11:47:49 +00:00
main_windows_test.go net: add Listen system call hook for testing 2015-04-15 11:47:49 +00:00
mockserver_test.go net: fix tester goroutine leakage in tests 2015-04-07 03:26:03 +00:00
multicast_test.go
net_test.go net: simplify test helpers 2015-03-28 08:21:10 +00:00
net_windows_test.go
net.go net: remove old comment 2015-04-14 04:38:20 +00:00
netgo_unix_test.go
packetconn_test.go net: simplify test helpers 2015-03-28 08:21:10 +00:00
parse_test.go
parse.go net: simplify itoa conversions 2015-01-22 13:01:28 +00:00
pipe_test.go
pipe.go
platform_test.go net: simplify test helpers 2015-03-28 08:21:10 +00:00
port_test.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
port_unix.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
port.go
protoconn_test.go net: fix tester goroutine leakage in tests 2015-04-07 03:26:03 +00:00
race0.go
race.go
sendfile_dragonfly.go
sendfile_freebsd.go
sendfile_linux.go
sendfile_stub.go
sendfile_windows.go
server_test.go net: move test flags into main_test.go 2015-04-02 09:07:24 +00:00
sock_bsd.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
sock_cloexec.go net: add socket system call hooks for testing 2015-03-31 23:07:42 +00:00
sock_linux.go
sock_plan9.go
sock_posix.go net: add Listen system call hook for testing 2015-04-15 11:47:49 +00:00
sock_stub.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
sock_windows.go net: add socket system call hooks for testing 2015-03-31 23:07:42 +00:00
sockopt_bsd.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
sockopt_linux.go
sockopt_plan9.go
sockopt_posix.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
sockopt_solaris.go
sockopt_stub.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
sockopt_windows.go
sockoptip_bsd.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
sockoptip_linux.go
sockoptip_posix.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
sockoptip_stub.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
sockoptip_windows.go
sys_cloexec.go net: add socket system call hooks for testing 2015-03-31 23:07:42 +00:00
tcp_test.go net: deflake dual IP stack tests 2015-04-07 13:32:28 +00:00
tcpsock_plan9.go net: document that user shouldn't modify returned Addr 2015-02-06 19:21:40 +00:00
tcpsock_posix.go net: simplify test helpers 2015-03-28 08:21:10 +00:00
tcpsock.go net: make multi-IP resolution more flexible. 2015-04-10 09:03:25 +00:00
tcpsockopt_darwin.go net: fix inconsistent behavior across platforms in SetKeepAlivePeriod 2014-09-11 17:56:58 +09:00
tcpsockopt_dragonfly.go net: fix inconsistent behavior across platforms in SetKeepAlivePeriod 2014-09-11 17:56:58 +09:00
tcpsockopt_openbsd.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
tcpsockopt_plan9.go
tcpsockopt_posix.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
tcpsockopt_stub.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
tcpsockopt_unix.go net: fix inconsistent behavior across platforms in SetKeepAlivePeriod 2014-09-11 17:56:58 +09:00
tcpsockopt_windows.go net: fix inconsistent behavior across platforms in SetKeepAlivePeriod 2014-09-11 17:56:58 +09:00
timeout_test.go net: fix tester goroutine leakage in tests 2015-04-07 03:26:03 +00:00
udp_test.go net: deflake dual IP stack tests 2015-04-07 13:32:28 +00:00
udpsock_plan9.go net: update documentation for WriteMsgUDP 2015-02-10 22:27:17 +00:00
udpsock_posix.go net: make multi-IP resolution more flexible. 2015-04-10 09:03:25 +00:00
udpsock.go net: make multi-IP resolution more flexible. 2015-04-10 09:03:25 +00:00
unicast_posix_test.go net: disable TestDualStackUDPListener in short mode 2014-10-06 13:09:14 -04:00
unix_test.go net: fix tester goroutine leakage in tests 2015-04-07 03:26:03 +00:00
unixsock_plan9.go net: document that user shouldn't modify returned Addr 2015-02-06 19:21:40 +00:00
unixsock_posix.go net: make multi-IP resolution more flexible. 2015-04-10 09:03:25 +00:00
unixsock.go net: make multi-IP resolution more flexible. 2015-04-10 09:03:25 +00:00