This CL is required for all.bat to work out of the box on
my Windows 8 laptop.
These tests either require the firewall to be turned off
or require the user to be in the Administrators group.
I don't know which.
Alex may follow up with a refinement of the test to
allow them to run if the user is in the Administrators
group.
Fixes #6392.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/
13421049
case "plan9":
t.Skipf("skipping test on %q", runtime.GOOS)
case "windows":
+ if testing.Short() || !*testExternal {
+ t.Skipf("skipping test on %q to avoid network firewall", runtime.GOOS)
+ }
default:
if os.Getuid() != 0 {
t.Skip("skipping test; must be root")
case "plan9":
t.Skipf("skipping test on %q", runtime.GOOS)
case "windows":
+ if testing.Short() || !*testExternal {
+ t.Skipf("skipping test on %q to avoid network firewall", runtime.GOOS)
+ }
default:
if os.Getuid() != 0 {
t.Skip("skipping test; must be root")
// port.
func TestIPv4MulticastListener(t *testing.T) {
switch runtime.GOOS {
+ case "windows":
+ if testing.Short() || !*testExternal {
+ t.Skipf("skipping test on %q to avoid network firewall", runtime.GOOS)
+ }
case "plan9":
t.Skipf("skipping test on %q", runtime.GOOS)
}
t.Logf("skipping %q test on %q", net, runtime.GOOS)
}
case "windows":
+ if testing.Short() || !*testExternal {
+ t.Skipf("skipping test on %q to avoid network firewall", runtime.GOOS)
+ }
default:
if os.Getuid() != 0 {
return nil, func() {
case "plan9":
t.Skipf("skipping test on %q", runtime.GOOS)
case "windows":
+ if testing.Short() || !*testExternal {
+ t.Skipf("skipping test on %q to avoid network firewall", runtime.GOOS)
+ }
default:
if os.Getuid() != 0 {
t.Skipf("skipping test; must be root")