We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 985158f + 43c7d02 commit 9af1877Copy full SHA for 9af1877
test/misc.jl
@@ -149,7 +149,10 @@ for l in (Threads.SpinLock(), ReentrantLock())
149
@test get_finalizers_inhibited() == 1
150
GC.enable_finalizers(true)
151
@test get_finalizers_inhibited() == 0
152
- @test_warn "WARNING: GC finalizers already enabled on this thread." GC.enable_finalizers(true)
+ if ccall(:jl_is_debugbuild, Cint, ()) != 0
153
+ # Note this warning only exists in debug builds
154
+ @test_warn "WARNING: GC finalizers already enabled on this thread." GC.enable_finalizers(true)
155
+ end
156
157
@test lock(l) === nothing
158
@test try unlock(l) finally end === nothing
0 commit comments