diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 9cef299b6660b1..d7910e5acf5178 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -2748,7 +2748,7 @@ def test_warmup_frees_pages # Number of pages freed should cause equal increase in number of allocatable pages. assert_equal(total_pages_before, GC.stat(:heap_eden_pages) + GC.stat(:heap_allocatable_pages)) - assert_equal(0, GC.stat(:heap_tomb_pages)) + assert_equal(0, GC.stat(:heap_tomb_pages), GC.stat) assert_operator(GC.stat(:total_freed_pages), :>, 0) end; end