From db3b814cb0ff6ffe83fe0c4f66cd6ce8951c3ca7 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Mon, 4 Sep 2023 14:01:33 -0400 Subject: [PATCH] Add debug info for flaky test_warmup_frees_pages This test sometimes fails with: ``` 1) Failure: TestProcess#test_warmup_frees_pages [test/ruby/test_process.rb:2751]: <0> expected but was <1>. ``` I'm not sure why, so add some debug info. --- test/ruby/test_process.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 9cef299b66..d7910e5acf 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -2748,7 +2748,7 @@ EOS # 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