aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikio Hara <mikioh.mikioh@gmail.com>2012-06-13 16:24:38 -0400
committerMikio Hara <mikioh.mikioh@gmail.com>2012-06-13 16:24:38 -0400
commit0a6b1d66f668cf7daa73befbb5fec62fa521cf38 (patch)
tree32bf258c47201abc46e685597e5ec57715e56a8d
parentf3845647780c3a705dad23ac06915307714ee142 (diff)
downloadgo-0a6b1d66f668cf7daa73befbb5fec62fa521cf38.tar.gz
go-0a6b1d66f668cf7daa73befbb5fec62fa521cf38.zip
[release-branch.go1] path/filepath: fix test
««« 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 »»»
-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 59e79350b7..070905fd3e 100644
--- a/src/pkg/path/filepath/path_test.go
+++ b/src/pkg/path/filepath/path_test.go
@@ -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