]> Cypherpunks repositories - gostls13.git/commitdiff
net: skip ICMP test on Windows too unless uid 0
authorBrad Fitzpatrick <bradfitz@golang.org>
Fri, 14 Oct 2011 17:07:27 +0000 (10:07 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 14 Oct 2011 17:07:27 +0000 (10:07 -0700)
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

src/pkg/net/ipraw_test.go

index 7f8c7b841ea1c92d90d7eb57e0ab0587222d2b60..6894ce656dd5b7cfd7c19e9c8c6205653bd1ce0d 100644 (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
        }