8000 Add debug message to test_heaps_grow_independently · ruby/ruby@da2453c · GitHub
[go: up one dir, main page]

Skip to content

Commit da2453c

Browse files
committed
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.
1 parent 01f6bd8 commit da2453c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/ruby/test_gc.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,9 @@ def allocate_large_object = Array.new(10)
703703
allocate_large_object
704704
end
705705
706-
assert_operator(GC.stat(:heap_available_slots), :<, COUNT * 2)
706+
heap_available_slots = GC.stat(:heap_available_slots)
707+
708+
assert_operator(heap_available_slots, :<, COUNT * 2, "GC.stat: #{GC.stat}\nGC.stat_heap: #{GC.stat_heap}")
707709
RUBY
708710
end
709711

0 commit comments

Comments
 (0)
0