From 16f4f05ac0ddb54c9a319fa8e72033886bec2448 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Mon, 2 Jan 2023 12:18:03 +0100 Subject: [PATCH] Disable further FileWatching tests (#47920) --- stdlib/FileWatching/test/runtests.jl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/stdlib/FileWatching/test/runtests.jl b/stdlib/FileWatching/test/runtests.jl index 65e0433d559b0..dd5187ec52434 100644 --- a/stdlib/FileWatching/test/runtests.jl +++ b/stdlib/FileWatching/test/runtests.jl @@ -12,8 +12,6 @@ using Base: uv_error, Experimental # Odd numbered pipes are tested for reads # Even numbered pipes are tested for timeouts # Writable ends are always tested for write-ability before a write -ismacos_arm = ((Sys.ARCH == :aarch64) && (Sys.isapple())) #https://github.com/JuliaLang/julia/issues/46185 -ismacos_x86 = ((Sys.ARCH == :x86_64) && (Sys.isapple())) #Used to disable the unreliable macos tests n = 20 intvls = [2, .2, .1, .005, .00001] @@ -34,7 +32,7 @@ for i in 1:n if !fd_in_limits && Sys.islinux() run(`ls -la /proc/$(getpid())/fd`) end - if !ismacos_arm + if !Sys.isapple() @test fd_in_limits end end @@ -187,7 +185,7 @@ function test_init_afile() @test(watch_folder(dir) == (F_PATH => FileWatching.FileEvent(FileWatching.UV_RENAME))) @test close(open(file, "w")) === nothing sleep(3) - if !ismacos_x86 + if !Sys.isapple() let c c = watch_folder(dir, 0) @@ -377,7 +375,7 @@ test_monitor_wait_poll() test_watch_file_timeout(0.2) test_watch_file_change(6) -if !ismacos_x86 +if !Sys.isapple() test_dirmonitor_wait2(0.2) test_dirmonitor_wait2(0.2)