From 8c9e99550f43253b6f839e8f3b41db3ee901ea04 Mon Sep 17 00:00:00 2001 From: Martijn Visser Date: Thu, 9 Feb 2023 21:42:57 +0100 Subject: [PATCH] remove unsound threading test --- test/test_geos_types.jl | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/test/test_geos_types.jl b/test/test_geos_types.jl index 2ff7b38..ef4b175 100644 --- a/test/test_geos_types.jl +++ b/test/test_geos_types.jl @@ -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