summaryrefslogtreecommitdiff
path: root/Test.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-06-18 16:35:44 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-06-18 16:37:54 -0400
commitfc1ccfa6570b4d8cbfabbc6374f5b95f510da79d (patch)
treefc23bd60f9f4bd9ab467732c8a46879daaea559d /Test.hs
parentf541d7bfd4e9942c12c86f00363dd309267fcbd7 (diff)
few final bits for fully working test suite on windows
Diffstat (limited to 'Test.hs')
-rw-r--r--Test.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Test.hs b/Test.hs
index 13b65a07b..9673844ca 100644
--- a/Test.hs
+++ b/Test.hs
@@ -75,7 +75,12 @@ main = do
putStrLn " (Do not be alarmed by odd output here; it's normal."
putStrLn " wait for the last line to see how it went.)"
rs <- runhunit =<< prepare False
+#ifndef __WINDOWS__
directrs <- runhunit =<< prepare True
+#else
+ -- Windows is only going to use direct mode, so don't test twice.
+ let directrs = []
+#endif
divider
propigate (rs++directrs) qcok
where
@@ -1005,6 +1010,7 @@ cleanup dir = do
recurseDir SystemFS dir >>=
filterM doesDirectoryExist >>=
mapM_ Utility.FileMode.allowWrite
+ -- For unknown reasons, this sometimes fails on Windows.
void $ tryIO $ removeDirectoryRecursive dir
checklink :: FilePath -> Assertion