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.
This commit is contained in:
Peter Zhu 2025-04-19 20:10:39 +09:00
parent 01f6bd8bc3
commit da2453c58d
Notes: git 2025-06-05 14:52:00 +00:00

View File

@ -703,7 +703,9 @@ class TestGc < Test::Unit::TestCase
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