Skip to content

Enable some fsevent tests #3009

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions test/Streamly/Test/FileSystem/Event/Linux.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module Streamly.Test.FileSystem.Event.Linux (main) where

import Streamly.Internal.FileSystem.Event.Linux (Event)
-- #if __GLASGOW_HASKELL__ == 902
#if 1
#if 0
import qualified Data.List as List
#endif
import qualified Streamly.Internal.FileSystem.Event.Linux as Event
Expand Down Expand Up @@ -113,7 +113,7 @@ main = do
let w = Event.watchWith (Event.setAllEvents True)
run = runTests moduleName "non-recursive" w

#if 1
#if 0
let failingTests =
[ "File deleted (file1)"
, "File modified (file1)"
Expand All @@ -122,13 +122,13 @@ main = do
#endif

run DirType
#if 1
#if 0
$ filter (\(desc, _, _, _) -> desc `List.notElem` failingTests)
#endif
regTests

run SymLinkOrigPath
#if 1
#if 0
$ filter (\(desc, _, _, _) -> desc `List.notElem` failingTests)
#endif
symTests
Expand Down Expand Up @@ -186,7 +186,7 @@ main = do
-- uncaught exception: IOException of type ResourceBusy
-- /tmp/fsevent_dir-a5bd0df64c44ab27/watch-root/file: openFile: resource busy (file is locked)

#if 1
#if 0
let failingRecTests = failingTests ++
[ "File created (subdir/file)"
, "File deleted (subdir/file1)"
Expand All @@ -196,13 +196,13 @@ main = do
#endif

runRec DirType
#if 1
#if 0
$ filter (\(desc, _, _, _) -> desc `List.notElem` failingRecTests)
#endif
recRegTests

runRec SymLinkOrigPath
#if 1
#if 0
$ filter (\(desc, _, _, _) -> desc `List.notElem` failingRecTests)
#endif
recSymTests
Expand Down
Loading