]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: disable TestServeFileFromCWD test on windows
authorAlex Brainman <alex.brainman@gmail.com>
Tue, 7 Aug 2012 03:19:49 +0000 (13:19 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Tue, 7 Aug 2012 03:19:49 +0000 (13:19 +1000)
This is an attempt to fix windows build. Will restore
once we know what the problem is.

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

src/pkg/net/http/fs_test.go

index 572bef5045623aa64c54c8f83d876c08a675c327..fe4844b7e3b748942bc8f295fbb0e09476bb4f0b 100644 (file)
@@ -335,6 +335,11 @@ func TestServeFileMimeType(t *testing.T) {
 }
 
 func TestServeFileFromCWD(t *testing.T) {
+       if runtime.GOOS == "windows" {
+               // TODO(brainman): find out why this test is broken
+               t.Logf("Temporarily skipping test on Windows; see http://golang.org/issue/3917")
+               return
+       }
        ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {
                ServeFile(w, r, "fs_test.go")
        }))