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

ruby-changes:33246

From: nobu <ko1@a...>
Date: Fri, 14 Mar 2014 01:18:34 +0900 (JST)
Subject: [ruby-changes:33246] nobu:r45325 (trunk): test/dl, test/fiddle: relax criteria

nobu	2014-03-14 01:18:30 +0900 (Fri, 14 Mar 2014)

  New Revision: 45325

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

  Log:
    test/dl, test/fiddle: relax criteria
    
    * test/dl/test_{cptr,handle}.rb, test/fiddle/test_{handle,pointer}.rb:
      relax memory leak criteria.

  Modified files:
    trunk/test/dl/test_cptr.rb
    trunk/test/dl/test_handle.rb
    trunk/test/fiddle/test_handle.rb
    trunk/test/fiddle/test_pointer.rb
Index: test/fiddle/test_pointer.rb
===================================================================
--- test/fiddle/test_pointer.rb	(revision 45324)
+++ test/fiddle/test_pointer.rb	(revision 45325)
@@ -232,7 +232,7 @@ module Fiddle https://github.com/ruby/ruby/blob/trunk/test/fiddle/test_pointer.rb#L232
     end
 
     def test_no_memory_leak
-      assert_no_memory_leak(%w[-W0 -rfiddle.so], '', '100_000.times {Fiddle::Pointer.allocate}', limit: 1.2, rss: true)
+      assert_no_memory_leak(%w[-W0 -rfiddle.so], '', '100_000.times {Fiddle::Pointer.allocate}', rss: true)
     end
   end
 end if defined?(Fiddle)
Index: test/fiddle/test_handle.rb
===================================================================
--- test/fiddle/test_handle.rb	(revision 45324)
+++ test/fiddle/test_handle.rb	(revision 45325)
@@ -190,7 +190,7 @@ module Fiddle https://github.com/ruby/ruby/blob/trunk/test/fiddle/test_handle.rb#L190
     end if /freebsd/=~ RUBY_PLATFORM
 
     def test_no_memory_leak
-      assert_no_memory_leak(%w[-W0 -rfiddle.so], '', '100_000.times {Fiddle::Handle.allocate}; GC.start', limit: 1.2, rss: true)
+      assert_no_memory_leak(%w[-W0 -rfiddle.so], '', '100_000.times {Fiddle::Handle.allocate}; GC.start', rss: true)
     end
   end
 end if defined?(Fiddle)
Index: test/dl/test_cptr.rb
===================================================================
--- test/dl/test_cptr.rb	(revision 45324)
+++ test/dl/test_cptr.rb	(revision 45325)
@@ -221,6 +221,6 @@ module DL https://github.com/ruby/ruby/blob/trunk/test/dl/test_cptr.rb#L221
   end
 
   def test_no_memory_leak
-    assert_no_memory_leak(%w[-W0 -rdl.so], '', '100_000.times {DL::CPtr.allocate}', limit: 1.2, rss: true)
+    assert_no_memory_leak(%w[-W0 -rdl.so], '', '100_000.times {DL::CPtr.allocate}', rss: true)
   end
 end
Index: test/dl/test_handle.rb
===================================================================
--- test/dl/test_handle.rb	(revision 45324)
+++ test/dl/test_handle.rb	(revision 45325)
@@ -186,6 +186,6 @@ module DL https://github.com/ruby/ruby/blob/trunk/test/dl/test_handle.rb#L186
   end
 
   def test_no_memory_leak
-    assert_no_memory_leak(%w[-W0 -rdl.so], '', '100_000.times {DL::Handle.allocate}; GC.start', limit: 1.2, rss: true)
+    assert_no_memory_leak(%w[-W0 -rdl.so], '', '100_000.times {DL::Handle.allocate}; GC.start', rss: true)
   end
 end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

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