From 1777e39c2a78c969d7e86af78e381c8d00df9772 Mon Sep 17 00:00:00 2001 From: normal Date: Mon, 6 Aug 2018 08:42:04 +0000 Subject: [PATCH] test/ripper/test_parser_events.rb (test_block_variables): increase RLIMIT_AS Unfortunately, MJIT goes over the 100M RLIMIT_AS for this test on x86-64 (Debian 9) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ripper/test_parser_events.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/ripper/test_parser_events.rb b/test/ripper/test_parser_events.rb index 2fca61e1d1..215ec1cfc1 100644 --- a/test/ripper/test_parser_events.rb +++ b/test/ripper/test_parser_events.rb @@ -1457,8 +1457,11 @@ class TestRipper::ParserEvents < Test::Unit::TestCase def test_block_variables assert_equal("[fcall(proc,[],&block([],[void()]))]", parse("proc{|;y|}")) if defined?(Process::RLIMIT_AS) - assert_in_out_err(["-I#{File.dirname(__FILE__)}", "-rdummyparser"], - 'Process.setrlimit(Process::RLIMIT_AS,100*1024*1024); puts DummyParser.new("proc{|;y|!y}").parse', + dir = File.dirname(__FILE__) + as = (RubyVM::MJIT.enabled? ? 111 : 100) * 1024 * 1024 + assert_in_out_err(%W(-I#{dir} -rdummyparser), + "Process.setrlimit(Process::RLIMIT_AS,#{as}); "\ + "puts DummyParser.new('proc{|;y|!y}').parse", ["[fcall(proc,[],&block([],[unary(!,ref(y))]))]"], [], '[ruby-dev:39423]') end end