Skip to content

Commit

Permalink
path/filepath: fix test on darwin
Browse files Browse the repository at this point in the history
/tmp being itself a symlink causes problems for the test, so use / as the absolute path.

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5675070
  • Loading branch information
robpike committed Feb 16, 2012
1 parent 1d3ca92 commit c560a07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pkg/path/filepath/path_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ var EvalSymlinksTestDirs = []EvalSymlinksTest{
{"test/dir/link3", "../../"},
{"test/link1", "../test"},
{"test/link2", "dir"},
{"test/linkabs", "/tmp"},
{"test/linkabs", "/"},
}

var EvalSymlinksTests = []EvalSymlinksTest{
Expand All @@ -572,7 +572,7 @@ var EvalSymlinksTests = []EvalSymlinksTest{
{"test/link2/..", "test"},
{"test/dir/link3", "."},
{"test/link2/link3/test", "test"},
{"test/linkabs", "/tmp"},
{"test/linkabs", "/"},
}

var EvalSymlinksAbsWindowsTests = []EvalSymlinksTest{
Expand Down

0 comments on commit c560a07

Please sign in to comment.