We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2dc3db9 commit 03861bbCopy full SHA for 03861bb
test/core.jl
@@ -2852,15 +2852,15 @@ mutable struct Obj; x; end
2852
push!(wr, WeakRef(x))
2853
nothing
2854
end
2855
- @noinline test_wr(r, wr) = r[1] == wr[1].value
+ @noinline test_wr(r, wr) = @test r[1] == wr[1].value
2856
function test_wr()
2857
# we need to be very careful here that we never
2858
# use the value directly in this function, so we aren't dependent
2859
# on optimizations deleting the root for it before reaching the test
2860
ref = []
2861
wref = []
2862
mk_wr(ref, wref)
2863
- @test test_wr(ref, wref)
+ test_wr(ref, wref)
2864
GC.gc()
2865
test_wr(ref, wref)
2866
empty!(ref)
0 commit comments