ruby-changes:53474
From: k0kubun <ko1@a...>
Date: Tue, 13 Nov 2018 10:35:18 +0900 (JST)
Subject: [ruby-changes:53474] k0kubun:r65690 (trunk): test_array.rb: try to avoid NoMemoryError on AppVeyor
k0kubun 2018-11-13 10:35:09 +0900 (Tue, 13 Nov 2018) New Revision: 65690 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65690 Log: test_array.rb: try to avoid NoMemoryError on AppVeyor We somehow hit NoMemoryError twice on that place. https://ci.appveyor.com/project/ruby/ruby/builds/20224556/job/hlgt963e0cgjbj3c https://ci.appveyor.com/project/ruby/ruby/builds/20250696/job/gm559bu2jbd6youm Let me try firing GC here. Modified files: trunk/test/ruby/test_array.rb Index: test/ruby/test_array.rb =================================================================== --- test/ruby/test_array.rb (revision 65689) +++ test/ruby/test_array.rb (revision 65690) @@ -2943,6 +2943,7 @@ class TestArray < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_array.rb#L2943 Bug11235 = '[ruby-dev:49043] [Bug #11235]' def test_push_over_ary_max + GC.start # avoid NoMemoryError on the next line assert_separately(['-', ARY_MAX.to_s, Bug11235], "#{<<~"begin;"}\n#{<<~'end;'}", timeout: 30) begin; a = Array.new(ARGV[0].to_i) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/