]> Cypherpunks repositories - gostls13.git/commit
net: enable TestInterfaceHardwareAddrWithGetmac on all windows versions
authorJeff Johnson <jrjohnson@google.com>
Fri, 8 Dec 2017 17:21:57 +0000 (09:21 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 8 Dec 2017 19:02:40 +0000 (19:02 +0000)
commit82f58c11e1f39e236382153fd2dddc4bacea2176
treeb74586542888d02146d2f884a60391ab202bc0d4
parent66ba18bf2119bde33ce8cf8907cedd470566cce8
net: enable TestInterfaceHardwareAddrWithGetmac on all windows versions

Re-work the test to use wmic instead of PowerShell's getmac that's
only avaliable on Server 2008. Maintains duplicate detection added
for golang/go#21027.

Tested on windows-amd64-{2008, 2012, 2016} buildlets.
Enabling for Windows XP because it should work[1].

Fixes golang/go#20073

[1] https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/wmic_overview.mspx?mfr=true

Change-Id: Ic11d569f7964f61d08ae0dcc1b926efc5336ac5b
Reviewed-on: https://go-review.googlesource.com/82975
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/net_windows_test.go