This is the mail archive of the
mailing list for the GCC project.
r206224 - /trunk/libgo/go/net/dial_test.go
- From: ian at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 27 Dec 2013 21:42:27 -0000
- Subject: r206224 - /trunk/libgo/go/net/dial_test.go
Date: Fri Dec 27 21:42:26 2013
New Revision: 206224
net: use DialTimeout in TestSelfConnect
Backported from master repository.
This avoids problems with systems that take a long time to
find out nothing is listening, while still testing for the
self-connect misfeature since a self-connect should be fast.
With this we may be able to remove the test for non-Linux
Tested (on GNU/Linux) by editing selfConnect in
tcpsock_posix.go to always return false and verifying that
TestSelfConnect then fails with and without this change.
Idea from Uros Bizjak.