]> dgit.raspbian.org Git - git-annex.git/commit
fix quickcheck test on windows
authorJoey Hess <joeyh@joeyh.name>
Tue, 22 Mar 2022 17:53:55 +0000 (13:53 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 22 Mar 2022 17:53:55 +0000 (13:53 -0400)
commit150d73c2687c7d94324f102aca8d62792c116444
tree194add23f03bf33d95392e110340230fe9044f04
parente37f0f227b80aff5965d3b54336d837ccdd7c945
fix quickcheck test on windows

prop_relPathDirToFileAbs_basics (TestableFilePath ":/") failed on
windows. The colon was filtered out after trying to make
the path relative, which only removed leading path separators.
So, ":/" changed to "/" which is not relative. Filtering out the colon
before hand avoids this problem.

Sponsored-by: Luke Shumaker on Patreon
Utility/Path/Tests.hs
doc/bugs/test_prop__95__relPathDirToFileAbs__95__basics_fails_again.mdwn