summaryrefslogtreecommitdiff
path: root/test/ripper
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-06 08:42:04 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-06 08:42:04 +0000
commit1777e39c2a78c969d7e86af78e381c8d00df9772 (patch)
treefb90e56333d3e9e5fd0bb330d7a537f5356fb040 /test/ripper
parent194a6a2c68e9c8a3536b24db18ceac87535a6051 (diff)
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
Diffstat (limited to 'test/ripper')
-rw-r--r--test/ripper/test_parser_events.rb7
1 files 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