]> Cypherpunks repositories - gostls13.git/commit
net: make getmac based tests on windows more robust
authorVolker Dobler <dr.volker.dobler@gmail.com>
Tue, 9 Feb 2016 13:39:52 +0000 (14:39 +0100)
committerRuss Cox <rsc@golang.org>
Wed, 10 Feb 2016 14:42:30 +0000 (14:42 +0000)
commit811b785193e04c630f26f1cff83d276a572e150d
tree998572181f21d2e3064e2b0730fe74d2d697ccc0
parent79d9f48c73124eb21db99efa4b97cee044f52700
net: make getmac based tests on windows more robust

The Windows 7 getmac command may report the physical address of an adapter
as "Disabled" or "N/A". Handle these two cases to make the tests more
robust when building on Windows with manually disabled adapters or turned
off hardware.

Addresses issue #14130.

Change-Id: I0c2f8554b4b6810568e4e60ed53857599401f296
Reviewed-on: https://go-review.googlesource.com/19411
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/net/net_windows_test.go