From 3abaf5cae0557452264272331c7a7e308e14258f Mon Sep 17 00:00:00 2001 From: Shivakumar GN Date: Tue, 30 Jul 2013 18:25:08 -0700 Subject: [PATCH] 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 --- src/pkg/net/http/fs_test.go | 3 +++ 1 file changed, 3 insertions(+) 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") -- 2.48.1