From 7aa4c6cbd962bd06284ec6340779b20f4555513f Mon Sep 17 00:00:00 2001 From: Dilum Aluthge Date: Fri, 5 Nov 2021 04:52:51 -0400 Subject: [PATCH] Distributed test suite: mark another test as thread-unsafe (#42941) (cherry picked from commit 7c9d1262e8dcf45e65fad9f741f355dd5b847df9) --- stdlib/Distributed/test/distributed_exec.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stdlib/Distributed/test/distributed_exec.jl b/stdlib/Distributed/test/distributed_exec.jl index 18f67efda7b1e..1192afca26975 100644 --- a/stdlib/Distributed/test/distributed_exec.jl +++ b/stdlib/Distributed/test/distributed_exec.jl @@ -293,7 +293,9 @@ let wid1 = workers()[1], end finalize(rr) # finalize locally yield() # flush gc msgs - @test remotecall_fetch(k -> haskey(Distributed.PGRP.refs, k), wid1, rrid) == true + if include_thread_unsafe() + @test remotecall_fetch(k -> haskey(Distributed.PGRP.refs, k), wid1, rrid) == true + end remotecall_fetch(r -> (finalize(take!(r)); yield(); nothing), wid2, fstore) # finalize remotely sleep(0.5) # to ensure that wid2 messages have been executed on wid1 @test remotecall_fetch(k -> haskey(Distributed.PGRP.refs, k), wid1, rrid) == false