fix prop_relPathDirToFileAbs_basics fail on windows
authorJoey Hess <joeyh@joeyh.name>
Mon, 18 Jan 2021 17:19:17 +0000 (13:19 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 18 Jan 2021 17:26:10 +0000 (13:26 -0400)
commit7eb54bad12ceced30ff6bfa907ec8e417391d2e3
tree867a9fa64ca0bdd4bbdc7c7d0467ca333cfea8b0
parent75358f98b0f5032c398d2068ecd84289e56d7bb5
fix prop_relPathDirToFileAbs_basics fail on windows

It was just slapping on a path separator to the front of the path to
make it absolute, but on windows, a path like "//foo/bar" actually
has a network "drive" of "//foo" and so that broke the test case.

Since "a:foo" is a somehow relative path on windows
(who knows how), drop any drive from the input. But dropDrive also drops
any leading path separator, making the input path relative. So now
it should be safe to slapp on a leading path separator.
Utility/Path/Tests.hs
doc/bugs/W__58__prop__95__relPathDirToFileAbs__95__basics_started_to_fail.mdwn