fix 3 minor bugs in joinPath (see #13455) (#13462) [backport]

(cherry picked from commit 3dad130034)
This commit is contained in:
Andrey Makarov
2020-02-23 22:22:46 +03:00
committed by narimiran
parent b6924383df
commit fbf28d1ce7
3 changed files with 8 additions and 2 deletions

View File

@@ -338,6 +338,10 @@ block ospaths:
doAssert joinPath("", "lib") == "lib"
doAssert joinPath("", "/lib") == unixToNativePath"/lib"
doAssert joinPath("usr/", "/lib") == unixToNativePath"usr/lib"
doAssert joinPath("", "") == unixToNativePath""
doAssert joinPath("/" / "") == unixToNativePath"/"
doAssert joinPath("/", "/a/b/c") == unixToNativePath"/a/b/c"
doAssert joinPath("foo/","") == unixToNativePath"foo/"
block getTempDir:
block TMPDIR: