aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/path/filepath/path_test.go
diff options
context:
space:
mode:
authorMikio Hara <mikioh.mikioh@gmail.com>2012-06-04 09:57:03 +0900
committerMikio Hara <mikioh.mikioh@gmail.com>2012-06-04 09:57:03 +0900
commit24075d33a502889a54ae25195c3f9ae6bceb6628 (patch)
treee1505671e4d717edb8e898adfc0a81ab368788a3 /src/pkg/path/filepath/path_test.go
parenta76c8b243014b884b24642e0d1d044434f583ae4 (diff)
downloadgo-24075d33a502889a54ae25195c3f9ae6bceb6628.tar.xz
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
Diffstat (limited to 'src/pkg/path/filepath/path_test.go')
-rw-r--r--src/pkg/path/filepath/path_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pkg/path/filepath/path_test.go b/src/pkg/path/filepath/path_test.go
index e6097d5146..cb84d98b47 100644
--- a/src/pkg/path/filepath/path_test.go
+++ b/src/pkg/path/filepath/path_test.go
@@ -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