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

Skip to content

Commit 6346e86

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 d6d4e68 commit 6346e86

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
@@ -701,7 +701,9 @@ def allocate_large_object = Array.new(10)
701701
allocate_large_object
702702
end
703703
704-
assert_operator(GC.stat(:heap_available_slots), :<, COUNT * 2)
704+
heap_available_slots = GC.stat(:heap_available_slots)
705+
706+
assert_operator(heap_available_slots, :<, COUNT * 2, "GC.stat: #{GC.stat}\nGC.stat_heap: #{GC.stat_heap}")
705707
RUBY
706708
end
707709

0 commit comments

Comments
 (0)
0