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

ruby-changes:54380

From: k0kubun <ko1@a...>
Date: Fri, 28 Dec 2018 01:42:46 +0900 (JST)
Subject: [ruby-changes:54380] k0kubun:r66594 (trunk): test_method.rb: do not kill RubyCI openSUSE machine

k0kubun	2018-12-28 01:42:41 +0900 (Fri, 28 Dec 2018)

  New Revision: 66594

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

  Log:
    test_method.rb: do not kill RubyCI openSUSE machine
    
    with NoMemoryError on TestMethod#test_splat_long_array.
    
    https://rubyci.org/logs/rubyci.s3.amazonaws.com/opensuseleap/ruby-trunk/log/20181227T080002Z.log.html.gz
    
    Maybe better to check /proc/meminfo instead of /etc/os-release.

  Modified files:
    trunk/test/ruby/test_method.rb
Index: test/ruby/test_method.rb
===================================================================
--- test/ruby/test_method.rb	(revision 66593)
+++ test/ruby/test_method.rb	(revision 66594)
@@ -949,6 +949,10 @@ class TestMethod < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_method.rb#L949
   end
 
   def test_splat_long_array
+    if File.exist?('/etc/os-release') && File.read('/etc/os-release').include?('openSUSE Leap')
+      # For RubyCI's openSUSE machine http://rubyci.s3.amazonaws.com/opensuseleap/ruby-trunk/recent.html, which tends to die with NoMemoryError here.
+      skip 'do not exhaust memory on RubyCI openSUSE Leap machine'
+    end
     n = 10_000_000
     assert_equal n  , rest_parameter(*(1..n)).size, '[Feature #10440]'
   end

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

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