Skip to content

Commit

Permalink
disable FileWatching tests that fail on mac (#26725) (#28411)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson authored and Keno committed Aug 3, 2018
1 parent 23554da commit 785b82d
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions stdlib/FileWatching/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -398,11 +398,17 @@ let changes = []
@test pop!(changes) == ("" => FileWatching.FileEvent())
if F_GETPATH
Sys.iswindows() && @test pop!(changes) == (F_PATH => FileWatching.FileEvent(FileWatching.UV_CHANGE))
@test pop!(changes) == (F_PATH => FileWatching.FileEvent(FileWatching.UV_RENAME))
p = pop!(changes)
if !Sys.isapple()
@test p == (F_PATH => FileWatching.FileEvent(FileWatching.UV_RENAME))
end
while changes[end][1] == F_PATH
@test pop!(changes)[2] == FileWatching.FileEvent(FileWatching.UV_RENAME)
end
@test pop!(changes) == (F_PATH * "~" => FileWatching.FileEvent(FileWatching.UV_RENAME))
p = pop!(changes)
if !Sys.isapple()
@test p == (F_PATH * "~" => FileWatching.FileEvent(FileWatching.UV_RENAME))
end
while changes[end][1] == F_PATH * "~"
@test pop!(changes)[2] == FileWatching.FileEvent(FileWatching.UV_RENAME)
end
Expand All @@ -414,7 +420,10 @@ let changes = []
while changes[end - 1][1] == "$F_PATH$i"
@test let x = pop!(changes)[2]; x.changed x.renamed; end
end
@test pop!(changes) == ("$F_PATH$i" => FileWatching.FileEvent(FileWatching.UV_RENAME))
p = pop!(changes)
if !Sys.isapple()
@test p == ("$F_PATH$i" => FileWatching.FileEvent(FileWatching.UV_RENAME))
end
end
end
end
Expand Down

0 comments on commit 785b82d

Please sign in to comment.