aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/path/filepath/path_test.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2012-02-17 09:56:14 +1100
committerRob Pike <r@golang.org>2012-02-17 09:56:14 +1100
commitc560a0742b2b91d6cb7bb890cf33d55beb68680d (patch)
treeb29d8cc254eed7123c4890fcd1dcb73b7542e103 /src/pkg/path/filepath/path_test.go
parent1d3ca9236e93c8e0ba3cd7f14b758fc2c791ad34 (diff)
downloadgo-c560a0742b2b91d6cb7bb890cf33d55beb68680d.tar.xz
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
Diffstat (limited to 'src/pkg/path/filepath/path_test.go')
-rw-r--r--src/pkg/path/filepath/path_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/path/filepath/path_test.go b/src/pkg/path/filepath/path_test.go
index 6b70aa2cd7..98ff466427 100644
--- a/src/pkg/path/filepath/path_test.go
+++ b/src/pkg/path/filepath/path_test.go
@@ -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{