]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1] path/filepath: fix test
authorMikio Hara <mikioh.mikioh@gmail.com>
Wed, 13 Jun 2012 20:24:38 +0000 (16:24 -0400)
committerMikio Hara <mikioh.mikioh@gmail.com>
Wed, 13 Jun 2012 20:24:38 +0000 (16:24 -0400)
««« backport 912fdfb20cc6
path/filepath: fix test

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 59e79350b7e3273e1cae45eba93443dd7b559c1e..070905fd3e452db077cdba33d7e1a3be9538d5cd 100644 (file)
@@ -871,7 +871,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