ruby-changes:38761
From: nobu <ko1@a...>
Date: Fri, 12 Jun 2015 17:03:04 +0900 (JST)
Subject: [ruby-changes:38761] nobu:r50842 (trunk): test_nofree.rb: rehearsal
nobu 2015-06-12 17:02:49 +0900 (Fri, 12 Jun 2015) New Revision: 50842 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50842 Log: test_nofree.rb: rehearsal * test/-ext-/string/test_nofree.rb (test_no_memory_leak): add a rehearsal. Modified files: trunk/test/-ext-/string/test_nofree.rb Index: test/-ext-/string/test_nofree.rb =================================================================== --- test/-ext-/string/test_nofree.rb (revision 50841) +++ test/-ext-/string/test_nofree.rb (revision 50842) @@ -3,8 +3,9 @@ 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' - assert_no_memory_leak(%w(-r-test-/string/string), '', - '1000000.times {Bug::String.nofree << "a" * 100}', - bug10942, rss: true) + code = '100_000.times {Bug::String.nofree << "a" * 100}' + assert_no_memory_leak(%w(-r-test-/string/string), + code, code, + bug10942, rss: true, limit: 1.1) end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/