Commit 24075d33 authored by Mikio Hara's avatar Mikio Hara

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
parent a76c8b24
...@@ -876,7 +876,10 @@ func TestDriveLetterInEvalSymlinks(t *testing.T) { ...@@ -876,7 +876,10 @@ func TestDriveLetterInEvalSymlinks(t *testing.T) {
} }
func TestBug3486(t *testing.T) { // http://code.google.com/p/go/issues/detail?id=3486 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") lib := filepath.Join(root, "lib")
src := filepath.Join(root, "src") src := filepath.Join(root, "src")
seenSrc := false seenSrc := false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment