]> Cypherpunks repositories - gostls13.git/commitdiff
path/filepath: fix test
authorMikio Hara <mikioh.mikioh@gmail.com>
Mon, 4 Jun 2012 00:57:03 +0000 (09:57 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Mon, 4 Jun 2012 00:57:03 +0000 (09:57 +0900)
Make it possible to run test over symlinked GOROOT.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/6268046

src/pkg/path/filepath/path_test.go

index e6097d51466ad39e49be27fd7ea8b8a49d01cb0c..cb84d98b4758e970a316448c1cb4bb87339f1227 100644 (file)
@@ -876,7 +876,10 @@ func TestDriveLetterInEvalSymlinks(t *testing.T) {
 }
 
 func TestBug3486(t *testing.T) { // http://code.google.com/p/go/issues/detail?id=3486
-       root := os.Getenv("GOROOT")
+       root, err := filepath.EvalSymlinks(os.Getenv("GOROOT"))
+       if err != nil {
+               t.Fatal(err)
+       }
        lib := filepath.Join(root, "lib")
        src := filepath.Join(root, "src")
        seenSrc := false