]> Cypherpunks repositories - gostls13.git/commit
net: retrieve if unix network is available only once for AIX
authorClément Chigot <clement.chigot@atos.net>
Thu, 11 Apr 2019 14:26:38 +0000 (16:26 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 12 Apr 2019 15:23:31 +0000 (15:23 +0000)
commit77fa11dffb59334eb32502c53faf9946a7caa1fc
tree6e52e3d9958e6eba21b21f323375f15465cfbe70
parent90458ec80e545989634940629f7393eb45545315
net: retrieve if unix network is available only once for AIX

The previous version was executing "oslevel -s" everytime testableNetwork
was called with unix/unixgram network. The current version retrieves if
the network is possible only once at the beginning of the tests.

This is clearly faster:
ok      net     74.045s
ok      net     5.098s

Change-Id: I12549da27721f85c007cf17cab5cfdbfeb839cf6
Reviewed-on: https://go-review.googlesource.com/c/go/+/171717
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/platform_test.go