summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2014-12-30 16:04:06 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2014-12-30 16:04:06 -0400
commitfed93b3a10e8d4d58a23d26fc282196d2d745123 (patch)
treef7455acf8536491cb10305895ce35e35f49a7d39
parenta571d6b20d18ce2973ba69de384fc50579d5b0e5 (diff)
fix test case on windows
"a:" is an absolute path, so viewedfile test cannot be run on it.
-rw-r--r--Annex/View/ViewedFile.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Annex/View/ViewedFile.hs b/Annex/View/ViewedFile.hs
index ef901f700..827ab09dc 100644
--- a/Annex/View/ViewedFile.hs
+++ b/Annex/View/ViewedFile.hs
@@ -70,6 +70,7 @@ prop_viewedFile_roundtrips :: FilePath -> Bool
prop_viewedFile_roundtrips f
-- Relative filenames wanted, not directories.
| any (isPathSeparator) (end f ++ beginning f) = True
+ | isAbsolute f = True
| otherwise = dir == dirFromViewedFile (viewedFileFromReference f)
where
dir = joinPath $ beginning $ splitDirectories f