mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
006afb858d
commit
fcc5a19e2f
1 changed files with 4 additions and 0 deletions
|
@ -949,6 +949,10 @@ class TestMethod < Test::Unit::TestCase
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue