From e92117bfd0d28b24f51a10903158b95010defffd Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 26 Nov 2020 11:48:52 -0400 Subject: [PATCH] fix test failure on windows "a:" failed; this test wants a relative filename so isDrive avoids it Note that on linux, isDrive "/foo" is true. This test also filters out absolute paths already, so that is ok. This commit was sponsored by Brock Spratlen on Patreon. --- Annex/View/ViewedFile.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Annex/View/ViewedFile.hs b/Annex/View/ViewedFile.hs index fccf9b48ec..a775da7dad 100644 --- a/Annex/View/ViewedFile.hs +++ b/Annex/View/ViewedFile.hs @@ -83,7 +83,7 @@ prop_viewedFile_roundtrips :: TestableFilePath -> Bool prop_viewedFile_roundtrips tf -- Relative filenames wanted, not directories. | any (isPathSeparator) (end f ++ beginning f) = True - | isAbsolute f = True + | isAbsolute f || isDrive f = True | otherwise = dir == dirFromViewedFile (viewedFileFromReference f) where f = fromTestableFilePath tf -- 2.30.2