ruby-changes:33396
From: nagachika <ko1@a...>
Date: Mon, 31 Mar 2014 00:52:45 +0900 (JST)
Subject: [ruby-changes:33396] nagachika:r45475 (ruby_2_0_0): * test/ruby/envutil.rb (assert_no_memory_leak): increase default value
nagachika 2014-03-31 00:52:38 +0900 (Mon, 31 Mar 2014) New Revision: 45475 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45475 Log: * test/ruby/envutil.rb (assert_no_memory_leak): increase default value of `limit` keyword argument. assert_no_memory_leak occasionally fails with limit=1.5. Modified files: branches/ruby_2_0_0/ChangeLog branches/ruby_2_0_0/test/ruby/envutil.rb Index: ruby_2_0_0/ChangeLog =================================================================== --- ruby_2_0_0/ChangeLog (revision 45474) +++ ruby_2_0_0/ChangeLog (revision 45475) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ChangeLog#L1 +Mon Mar 31 00:48:12 2014 CHIKANAGA Tomoyuki <nagachika@r...> + + * test/ruby/envutil.rb (assert_no_memory_leak): increase default value + of `limit` keyword argument. + assert_no_memory_leak occasionally fails with limit=1.5. + Mon Mar 31 00:15:45 2014 Shota Fukumori <her@s...> * vm_eval.c (eval_string_with_cref): Unify to use NIL_P. Index: ruby_2_0_0/test/ruby/envutil.rb =================================================================== --- ruby_2_0_0/test/ruby/envutil.rb (revision 45474) +++ ruby_2_0_0/test/ruby/envutil.rb (revision 45475) @@ -340,7 +340,7 @@ eom https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/test/ruby/envutil.rb#L340 assert_warning(*args) {$VERBOSE = false; yield} end - def assert_no_memory_leak(args, prepare, code, message=nil, limit: 1.5) + def assert_no_memory_leak(args, prepare, code, message=nil, limit: 2.0) require_relative 'memory_status' token = "\e[7;1m#{$$.to_s}:#{Time.now.strftime('%s.%L')}:#{rand(0x10000).to_s(16)}:\e[m" token_dump = token.dump -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/