mirror of
https://github.com/golang/go
synced 2024-11-25 09:17:57 -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:
parent
1d3ca9236e
commit
c560a0742b
@ -559,7 +559,7 @@ var EvalSymlinksTestDirs = []EvalSymlinksTest{
|
|||||||
{"test/dir/link3", "../../"},
|
{"test/dir/link3", "../../"},
|
||||||
{"test/link1", "../test"},
|
{"test/link1", "../test"},
|
||||||
{"test/link2", "dir"},
|
{"test/link2", "dir"},
|
||||||
{"test/linkabs", "/tmp"},
|
{"test/linkabs", "/"},
|
||||||
}
|
}
|
||||||
|
|
||||||
var EvalSymlinksTests = []EvalSymlinksTest{
|
var EvalSymlinksTests = []EvalSymlinksTest{
|
||||||
@ -572,7 +572,7 @@ var EvalSymlinksTests = []EvalSymlinksTest{
|
|||||||
{"test/link2/..", "test"},
|
{"test/link2/..", "test"},
|
||||||
{"test/dir/link3", "."},
|
{"test/dir/link3", "."},
|
||||||
{"test/link2/link3/test", "test"},
|
{"test/link2/link3/test", "test"},
|
||||||
{"test/linkabs", "/tmp"},
|
{"test/linkabs", "/"},
|
||||||
}
|
}
|
||||||
|
|
||||||
var EvalSymlinksAbsWindowsTests = []EvalSymlinksTest{
|
var EvalSymlinksAbsWindowsTests = []EvalSymlinksTest{
|
||||||
|
Loading…
Reference in New Issue
Block a user