Commit 3abaf5ca authored by Shivakumar GN's avatar Shivakumar GN Committed by Brad Fitzpatrick

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
parent 12a38d5b
......@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment