1
0
mirror of https://github.com/golang/go synced 2024-11-21 21:24:45 -07:00

path/filepath: fix test on darwin

/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
This commit is contained in:
Rob Pike 2012-02-17 09:56:14 +11:00
parent 1d3ca9236e
commit c560a0742b

View File

@ -559,7 +559,7 @@ var EvalSymlinksTestDirs = []EvalSymlinksTest{
{"test/dir/link3", "../../"},
{"test/link1", "../test"},
{"test/link2", "dir"},
{"test/linkabs", "/tmp"},
{"test/linkabs", "/"},
}
var EvalSymlinksTests = []EvalSymlinksTest{
@ -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{