[前][次][番号順一覧][スレッド一覧]

ruby-changes:38694

From: ko1 <ko1@a...>
Date: Fri, 5 Jun 2015 02:21:41 +0900 (JST)
Subject: [ruby-changes:38694] ko1:r50775 (trunk): * test/lib/envutil.rb (assert_no_memory_leak): change default value

ko1	2015-06-05 02:21:24 +0900 (Fri, 05 Jun 2015)

  New Revision: 50775

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50775

  Log:
    * test/lib/envutil.rb (assert_no_memory_leak): change default value
      of limit from 1.5 to 2.0. It is ad-hoc fix to solve test failure
      in travis-ci.

  Modified files:
    trunk/ChangeLog
    trunk/test/lib/envutil.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 50774)
+++ ChangeLog	(revision 50775)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Jun  5 02:20:06 2015  Koichi Sasada  <ko1@a...>
+
+	* test/lib/envutil.rb (assert_no_memory_leak): change default value
+	  of limit from 1.5 to 2.0. It is ad-hoc fix to solve test failure
+	  in travis-ci.
+
 Fri Jun  5 01:17:21 2015  Koichi Sasada  <ko1@a...>
 
 	* vm_insnhelper.c (vm_defined): no need to use cast.
Index: test/lib/envutil.rb
===================================================================
--- test/lib/envutil.rb	(revision 50774)
+++ test/lib/envutil.rb	(revision 50775)
@@ -464,7 +464,7 @@ eom https://github.com/ruby/ruby/blob/trunk/test/lib/envutil.rb#L464
         end
       end #case RUBY_PLATFORM
 
-      def assert_no_memory_leak(args, prepare, code, message=nil, limit: 1.5, rss: false, **opt)
+      def assert_no_memory_leak(args, prepare, code, message=nil, limit: 2.0, rss: false, **opt)
         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/

[前][次][番号順一覧][スレッド一覧]