]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: skip TestDirJoin on Windows, even if /etc/hosts exists
authorShivakumar GN <shivakumar.gn@gmail.com>
Wed, 31 Jul 2013 01:25:08 +0000 (18:25 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 31 Jul 2013 01:25:08 +0000 (18:25 -0700)
Fixes #5460.

R=golang-dev, rsc, bradfitz
CC=golang-dev
https://golang.org/cl/12123043

src/pkg/net/http/fs_test.go

index 559b2c09b9b09370208cbe742847cd6584acf172..e31c9f5f56a41037079d5770e3690e482e7362c7 100644 (file)
@@ -259,6 +259,9 @@ func TestFileServerImplicitLeadingSlash(t *testing.T) {
 }
 
 func TestDirJoin(t *testing.T) {
+       if runtime.GOOS == "windows" {
+               t.Skip("skipping test on windows")
+       }
        wfi, err := os.Stat("/etc/hosts")
        if err != nil {
                t.Skip("skipping test; no /etc/hosts file")