Skip to content

Commit

Permalink
Force full collection in SharedArrays tests (#34349)
Browse files Browse the repository at this point in the history
Fixes the same CI failure as #34336,
but hopefully should be immediately mergeable without objection about what
the interface is.

(cherry picked from commit 3ed4e94)
  • Loading branch information
Keno authored and KristofferC committed Jan 17, 2020
1 parent 381785b commit 2e9ceb8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions stdlib/SharedArrays/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ finalize(S)

# call gc 3 times to avoid unlink: operation not permitted (EPERM) on Windows
S = nothing
@everywhere GC.gc()
@everywhere GC.gc()
@everywhere GC.gc()
@everywhere GC.gc(true)
@everywhere GC.gc(true)
@everywhere GC.gc(true)
rm(fn); rm(fn2); rm(fn3)

### Utility functions
Expand Down Expand Up @@ -288,7 +288,7 @@ let
id = a1.id
aorig = nothing
a1 = remotecall_fetch(fill!, id_other, a1, 1.0)
GC.gc(); GC.gc()
GC.gc(true); GC.gc(true)
a1 = remotecall_fetch(fill!, id_other, a1, 1.0)
@test haskey(SharedArrays.sa_refs, id)
finalize(a1)
Expand Down

0 comments on commit 2e9ceb8

Please sign in to comment.