Skip to content

Commit

Permalink
Add debug info for flaky test_warmup_frees_pages
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
peterzhu2118 committed Sep 4, 2023
1 parent 0b5c614 commit db3b814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/ruby/test_process.rb
Expand Up @@ -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
Expand Down

0 comments on commit db3b814

Please sign in to comment.