From: Shivakumar GN Date: Wed, 31 Jul 2013 01:25:08 +0000 (-0700) Subject: net/http: skip TestDirJoin on Windows, even if /etc/hosts exists X-Git-Tag: go1.2rc2~886 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3abaf5cae0557452264272331c7a7e308e14258f;p=gostls13.git net/http: skip TestDirJoin on Windows, even if /etc/hosts exists Fixes #5460. R=golang-dev, rsc, bradfitz CC=golang-dev https://golang.org/cl/12123043 --- diff --git a/src/pkg/net/http/fs_test.go b/src/pkg/net/http/fs_test.go index 559b2c09b9..e31c9f5f56 100644 --- a/src/pkg/net/http/fs_test.go +++ b/src/pkg/net/http/fs_test.go @@ -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")