Random test

This commit is contained in:
Julian Ospald 2020-04-14 08:40:05 +02:00
parent b965635d05
commit dc4e652f3a
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
3 changed files with 4 additions and 2 deletions

View File

@ -69,7 +69,7 @@ install:
script:
- cabal build --enable-tests all
- cabal test all
- cabal run spec
- ./hpath/run-doctests.sh
- ./hpath-filepath/run-doctests.sh
- (cd hpath && cabal check)

View File

@ -1150,7 +1150,8 @@ getDirsFiles' :: RawFilePath -- ^ dir to read
getDirsFiles' fp = do
fd <- openFd fp SPI.ReadOnly [SPDF.oNofollow] Nothing
rawContents <- getDirectoryContents' fd
fmap catMaybes $ for rawContents $ \(_, f) ->
fmap catMaybes $ for rawContents $ \(_, f) -> do
putStrLn $ "getDirsFiles'" ++ (show f)
if FP.isSpecialDirectoryEntry f then pure Nothing else pure $ Just f

View File

@ -199,6 +199,7 @@ readDirEnt (unpackDirStream -> dirp) =
dName <- c_name dEnt >>= peekFilePath
dType <- c_type dEnt
c_freeDirEnt dEnt
putStrLn $ "readDirEnt" ++ (show dName)
return (dType, dName)
else do
errno <- getErrno