1 import Test
.Cabal
.Prelude
3 import System
.Directory
(createDirectoryIfMissing
)
5 -- Invalid Windows filepath.
8 cwd
<- testCurrentDir
<$> getTestEnv
9 liftIO
$ createDirectoryIfMissing
False $ cwd
</> "n?ul"
10 liftIO
$ writeFile (cwd
</> "n?ul" </> "test.a") ""
11 -- A directory named like `n?ul` on Windows will make external
12 -- tools like git — and hence the whole testsuite — error.
13 fails
$ cabal
"check" []