summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint/files/path_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkgtools/pkglint/files/path_test.go')
-rw-r--r--pkgtools/pkglint/files/path_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgtools/pkglint/files/path_test.go b/pkgtools/pkglint/files/path_test.go
index 4cdc95e3ae2..ddcfed4d84c 100644
--- a/pkgtools/pkglint/files/path_test.go
+++ b/pkgtools/pkglint/files/path_test.go
@@ -396,7 +396,7 @@ func (s *Suite) Test_Path_JoinClean(c *check.C) {
func (s *Suite) Test_Path_JoinNoClean(c *check.C) {
t := s.Init(c)
- test := func(p, rel RelPath, result RelPath) {
+ test := func(p Path, rel RelPath, result Path) {
t.CheckEquals(p.JoinNoClean(rel), result)
}
@@ -404,6 +404,7 @@ func (s *Suite) Test_Path_JoinNoClean(c *check.C) {
test("dir", "///file", "dir////file")
test("dir/./../dir/", "///file", "dir/./../dir/////file")
test("dir", "..", "dir/..")
+ test(".", "sub", "./sub")
}
func (s *Suite) Test_Path_Clean(c *check.C) {