From 601f4b6f6761f773cfd314bcf04232e4681e3af2 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Tue, 13 Nov 2018 01:35:09 +0000 Subject: [PATCH] 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_array.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb index 1b102c4658..6d77b1ebdd 100644 --- a/test/ruby/test_array.rb +++ b/test/ruby/test_array.rb @@ -2943,6 +2943,7 @@ class TestArray < Test::Unit::TestCase 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)