fix problem on windows with newly rewritten prop_relPathDirToFileAbs_basics
authorJoey Hess <joeyh@joeyh.name>
Fri, 22 Jan 2021 18:21:29 +0000 (14:21 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 22 Jan 2021 18:30:48 +0000 (14:30 -0400)
commit9b2084f29a341c6239597434211f959cc6b57f06
tree7aa2875d6046e3ceda3216a0acfd5fb6ff961892
parent551ac2bdf94d7fa3bdc83efc592ade2a8c4049e2
fix problem on windows with newly rewritten prop_relPathDirToFileAbs_basics

Seems that dropDrive on windows only drops eg c:/ but not a leading /
while on linux, it does drop a leading / (which is what it considers
to be equivilant to a drive letter. I had been relying on it to drop
both. So need to drop leading directory separators.

Also, if the quickcheck generated input is eg "c:c:c:c:foo",
dropDrive will only drop the first one, leaving a path that's
still not relative. So instead of using dropDrive, just remove the
colons from the path.
Utility/Path/Tests.hs
doc/bugs/prop__95__relPathDirToFileAbs__95__basics_fail_on_crippled___126__/comment_3_e8432845460fd0598f8fea5d00c70993._comment [new file with mode: 0644]