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

ruby-changes:38121

From: nobu <ko1@a...>
Date: Fri, 10 Apr 2015 10:03:02 +0900 (JST)
Subject: [ruby-changes:38121] nobu:r50202 (trunk): test_addrinfo.rb: relax memory usage criterion

nobu	2015-04-10 10:02:55 +0900 (Fri, 10 Apr 2015)

  New Revision: 50202

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

  Log:
    test_addrinfo.rb: relax memory usage criterion
    
    * test/socket/test_addrinfo.rb (test_marshal_memory_leak): relax
      the criterion.

  Modified files:
    trunk/test/socket/test_addrinfo.rb
Index: test/socket/test_addrinfo.rb
===================================================================
--- test/socket/test_addrinfo.rb	(revision 50201)
+++ test/socket/test_addrinfo.rb	(revision 50202)
@@ -470,13 +470,13 @@ class TestSocketAddrinfo < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/test/socket/test_addrinfo.rb#L470
 
   def test_marshal_memory_leak
     bug11051 = '[ruby-dev:48923] [Bug #11051]'
-    assert_no_memory_leak(%w[-rsocket], <<-prep, <<-code, bug11051, rss: true, limit: 1.1)
+    assert_no_memory_leak(%w[-rsocket], <<-PREP, <<-CODE, bug11051, rss: true)
     d = Marshal.dump(Addrinfo.tcp("127.0.0.1", 80))
     1000.times {Marshal.load(d)}
-    prep
+    PREP
     GC.start
     20_000.times {Marshal.load(d)}
-    code
+    CODE
   end
 
   if Socket.const_defined?("AF_INET6") && Socket::AF_INET6.is_a?(Integer)

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

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