1
0
mirror of https://github.com/golang/go synced 2024-11-21 21:24:45 -07:00

net: skip ICMP test on Windows too unless uid 0

This test fails for me on Windows 7 64-bit non-Admin.

R=golang-dev, rsc, krautz
CC=golang-dev
https://golang.org/cl/5276048
This commit is contained in:
Brad Fitzpatrick 2011-10-14 10:07:27 -07:00
parent ec10d67725
commit ddc3381e8b

View File

@ -11,7 +11,6 @@ import (
"bytes"
"flag"
"os"
"runtime"
"testing"
)
@ -65,7 +64,7 @@ var dsthost = flag.String("dsthost", "127.0.0.1", "Destination for the ICMP ECHO
// test (raw) IP socket using ICMP
func TestICMP(t *testing.T) {
if runtime.GOOS != "windows" && os.Getuid() != 0 {
if os.Getuid() != 0 {
t.Logf("test disabled; must be root")
return
}