Skip to content

Commit

Permalink
Distributed test suite: mark another test as thread-unsafe (#42941)
Browse files Browse the repository at this point in the history
(cherry picked from commit 7c9d126)
  • Loading branch information
DilumAluthge authored and staticfloat committed Dec 22, 2022
1 parent c108a0d commit 5efb6a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stdlib/Distributed/test/distributed_exec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5efb6a6

Please sign in to comment.