Skip to content

Commit

Permalink
remove unsound threading test
Browse files Browse the repository at this point in the history
  • Loading branch information
visr committed Feb 10, 2023
1 parent 931436d commit 8c9e995
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions test/test_geos_types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -369,24 +369,6 @@ end
return nothing
end
@test f91(91) === nothing
function f91_mixed_contexts(n)
nthread = Threads.nthreads()
contexts = [LibGEOS.GEOSContext() for i=1:nthread]
p = [[[-1.,-1],[+1,-1],[+1,+1],[-1,+1],[-1,-1]]]
Threads.@threads :static for i=1:n
ctx1 = contexts[rand(1:nthread)]
ctx2 = contexts[rand(1:nthread)]
ctx3 = contexts[rand(1:nthread)]
g1 = LibGEOS.Polygon(p, ctx1)
g2 = LibGEOS.Polygon(p, ctx2)
for j=1:n
@test LibGEOS.intersects(g1, g2, ctx3)
end
end
GC.gc(true)
return nothing
end
@test f91_mixed_contexts(91) === nothing
@testset "clone" begin
function f(n)
# adapted from https://github.com/JuliaGeo/LibGEOS.jl/issues/91#issuecomment-1267732709
Expand Down

0 comments on commit 8c9e995

Please sign in to comment.