From bf070fcbb056273bfaddb05110a29597673726a3 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Fri, 12 Nov 2021 14:00:25 -0800 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Jameson Nash --- test/threads.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/threads.jl b/test/threads.jl index 57fe270d1820f..1e4c4b4f6a5f3 100644 --- a/test/threads.jl +++ b/test/threads.jl @@ -149,7 +149,7 @@ end close(proc.in) # https://github.com/JuliaLang/julia/pull/42973 -@testset "spawn and wait *a lot* of tasks in @profile" begin +Sys.islinux() && @testset "spawn and wait *a lot* of tasks in @profile" begin # Not using threads_exec.jl for better isolation, reproducibility, and a # tighter timeout. script = "profile_spawnmany_exec.jl" @@ -158,7 +158,7 @@ close(proc.in) proc = run(ignorestatus(setenv(cmd, "NTASKS" => n; dir = @__DIR__)); wait = false) done = Threads.Atomic{Bool}(false) timeout = false - timer = Timer(10) do _ + timer = Timer(100) do _ timeout = true for sig in [Base.SIGTERM, Base.SIGHUP, Base.SIGKILL] for _ in 1:1000