ruby-changes:38762
From: nobu <ko1@a...>
Date: Fri, 12 Jun 2015 17:04:57 +0900 (JST)
Subject: [ruby-changes:38762] nobu:r50843 (trunk): test_nofree.rb: fix commit miss
nobu 2015-06-12 17:04:39 +0900 (Fri, 12 Jun 2015) New Revision: 50843 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50843 Log: test_nofree.rb: fix commit miss * test/-ext-/string/test_nofree.rb (test_no_memory_leak): remove limit and make the interation longer. Modified files: trunk/test/-ext-/string/test_nofree.rb Index: test/-ext-/string/test_nofree.rb =================================================================== --- test/-ext-/string/test_nofree.rb (revision 50842) +++ test/-ext-/string/test_nofree.rb (revision 50843) @@ -3,9 +3,10 @@ require 'test/unit' https://github.com/ruby/ruby/blob/trunk/test/-ext-/string/test_nofree.rb#L3 class Test_StringNoFree < Test::Unit::TestCase def test_no_memory_leak bug10942 = '[ruby-core:68436] [Bug #10942] no leak on nofree string' - code = '100_000.times {Bug::String.nofree << "a" * 100}' + code = '.times {Bug::String.nofree << "a" * 100}' assert_no_memory_leak(%w(-r-test-/string/string), - code, code, - bug10942, rss: true, limit: 1.1) + "100_000#{code}", + "1_000_000#{code}", + bug10942, rss: true) end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/