projects
/
haskell-directory.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b66b329
)
make this test work on Windows
author
Simon Marlow
<simonmar@microsoft.com>
Tue, 5 Feb 2008 14:54:50 +0000
(14:54 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Tue, 5 Feb 2008 14:54:50 +0000
(14:54 +0000)
I have no idea why it worked before
tests/doesDirectoryExist001.hs
patch
|
blob
|
history
diff --git
a/tests/doesDirectoryExist001.hs
b/tests/doesDirectoryExist001.hs
index
be26ec0
..
2548183
100644
(file)
--- a/
tests/doesDirectoryExist001.hs
+++ b/
tests/doesDirectoryExist001.hs
@@
-1,4
+1,11
@@
+{-# LANGUAGE CPP #-}
-- !!! "/" was not recognised as a directory in 6.0.x
import System.Directory
-main = doesDirectoryExist "/" >>= print
+#ifdef mingw32_HOST_OS
+root = "C:\\"
+#else
+root = "/"
+#endif
+
+main = doesDirectoryExist root >>= print