diff --git a/stdlib/FileWatching/test/runtests.jl b/stdlib/FileWatching/test/runtests.jl index 96731623359361..56fa90516d9168 100644 --- a/stdlib/FileWatching/test/runtests.jl +++ b/stdlib/FileWatching/test/runtests.jl @@ -398,11 +398,15 @@ 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)) + if !Sys.isapple() + @test pop!(changes) == (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)) + if !Sys.isapple() + @test pop!(changes) == (F_PATH * "~" => FileWatching.FileEvent(FileWatching.UV_RENAME)) + end while changes[end][1] == F_PATH * "~" @test pop!(changes)[2] == FileWatching.FileEvent(FileWatching.UV_RENAME) end @@ -414,7 +418,9 @@ 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)) + if !Sys.isapple() + @test pop!(changes) == ("$F_PATH$i" => FileWatching.FileEvent(FileWatching.UV_RENAME)) + end end end end