summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2025-04-19 20:10:39 +0900
committerPeter Zhu <peter@peterzhu.ca>2025-06-05 10:51:46 -0400
commitda2453c58de9b1bc6ab58296980b2b79a9213a90 (patch)
tree73ab7effc5f22c97b67118d1f14e1f7b239e93c7
parent01f6bd8bc357360882ad0161ebf1fa9718e9f3b3 (diff)
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.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13140
-rw-r--r--test/ruby/test_gc.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb
index a1229fc87a..e9b452c702 100644
--- a/test/ruby/test_gc.rb
+++ b/test/ruby/test_gc.rb
@@ -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