ruby-changes:51989
From: normal <ko1@a...>
Date: Mon, 6 Aug 2018 17:42:09 +0900 (JST)
Subject: [ruby-changes:51989] normal:r64204 (trunk): test/ripper/test_parser_events.rb (test_block_variables): increase RLIMIT_AS
normal 2018-08-06 17:42:04 +0900 (Mon, 06 Aug 2018) New Revision: 64204 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64204 Log: 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) Modified files: trunk/test/ripper/test_parser_events.rb Index: test/ripper/test_parser_events.rb =================================================================== --- test/ripper/test_parser_events.rb (revision 64203) +++ test/ripper/test_parser_events.rb (revision 64204) @@ -1457,8 +1457,11 @@ class TestRipper::ParserEvents < Test::U https://github.com/ruby/ruby/blob/trunk/test/ripper/test_parser_events.rb#L1457 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/