diff options
author | Peter Zhu <peter@peterzhu.ca> | 2023-09-06 13:31:50 -0400 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2023-09-06 13:31:50 -0400 |
commit | 08929b344d89fb12fb3a12eccf686458dc820e6d (patch) | |
tree | ecb18bf72e4529609562b81ee5f587a9228fddc6 /test | |
parent | a334077b7b4dfc2439afd9b429c2fcd9e4c3012e (diff) |
Try to fix flaky test_warmup_frees_pages
This test sometimes fails with:
```
1) Failure:
TestProcess#test_warmup_frees_pages [test/ruby/test_process.rb:2750]:
<202> expected but was
<203>.
```
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_process.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index d7910e5acf..dc0ccd1f77 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -2742,6 +2742,9 @@ EOS ary.clear ary = nil + # Disable GC so we can make sure GC only runs in Process.warmup + GC.disable + total_pages_before = GC.stat(:heap_eden_pages) + GC.stat(:heap_allocatable_pages) Process.warmup |