ruby/ruby-2.2.0-Extend-weak-ref-test-timeout.patch
2014-12-19 15:10:53 +01:00

13 lines
490 B
Diff

diff --git a/test/test_weakref.rb b/test/test_weakref.rb
index 36b5d5b..861457f 100644
--- a/test/test_weakref.rb
+++ b/test/test_weakref.rb
@@ -63,7 +63,7 @@ class TestWeakRef < Test::Unit::TestCase
def test_repeated_object_leak
bug10537 = '[ruby-core:66428]'
- assert_no_memory_leak(%w(-rweakref), '', <<-'end;', bug10537)
+ assert_no_memory_leak(%w(-rweakref), '', <<-'end;', bug10537, timeout: 30)
a = Object.new
150_000.times { WeakRef.new(a) }
end;