Project

General

Profile

Bug #10236 ยป 0001-test-ext-string-test_modify_expand.rb-increase-limit.patch

normalperson (Eric Wong), 09/13/2014 10:45 PM

View differences:

test/-ext-/string/test_modify_expand.rb
class Test_StringModifyExpand < Test::Unit::TestCase
def test_modify_expand_memory_leak
assert_no_memory_leak(["-r-test-/string/string"], <<-PRE, <<-CMD, "rb_str_modify_expand()")
assert_no_memory_leak(["-r-test-/string/string"],
<<-PRE, <<-CMD, "rb_str_modify_expand()", limit: 2.5)
s=Bug::String.new
PRE
size = $initial_size
-
    (1-1/1)