8000 Add debug message to test_heaps_grow_independently by peterzhu2118 · Pull Request #13140 · ruby/ruby · GitHub
[go: up one dir, main page]

Skip to content

Add debug message to test_heaps_grow_independently #13140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add debug message to test_heaps_grow_independently
To debug flaky failures on i686 that look like:

  1) Failure:
  TestGc#test_heaps_grow_independently [test/ruby/test_gc.rb:704]:
  Expected 2061929 to be < 2000000.
  • Loading branch information
peterzhu2118 committed Jun 5, 2025
commit e9247ce0514daad8f30ea7e742dfabc8c57b1ab9
4 changes: 3 additions & 1 deletion test/ruby/test_gc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,9 @@ def allocate_large_object = Array.new(10)
allocate_large_object
end

assert_operator(GC.stat(:heap_available_slots), :<, COUNT * 2)
heap_available_slots = GC.stat(:heap_available_slots)

assert_operator(heap_available_slots, :<, COUNT * 2, "GC.stat: #{GC.stat}\nGC.stat_heap: #{GC.stat_heap}")
RUBY
end

Expand Down
Loading
0