]> Cypherpunks repositories - gostls13.git/commitdiff
path/filepath: disable test on windows to fix build
authorAlex Brainman <alex.brainman@gmail.com>
Mon, 7 Mar 2011 01:23:57 +0000 (12:23 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Mon, 7 Mar 2011 01:23:57 +0000 (12:23 +1100)
R=golang-dev, rsc1
CC=golang-dev
https://golang.org/cl/4235054

src/pkg/path/filepath/path_test.go

index 469ca6a80298a5383baa6ee8b76a6d9cbbf16ef0..8f887f00bbf398f41e5e552a01997cc06e4805d8 100644 (file)
@@ -8,6 +8,7 @@ import (
        "os"
        "path/filepath"
        "reflect"
+       "runtime"
        "testing"
 )
 
@@ -279,6 +280,10 @@ func (v *TestVisitor) VisitFile(path string, f *os.FileInfo) {
 }
 
 func TestWalk(t *testing.T) {
+       // TODO(brainman): enable test once Windows version is implemented.
+       if runtime.GOOS == "windows" {
+               return
+       }
        makeTree(t)
 
        // 1) ignore error handling, expect none