diff options
author | Koichi Sasada <ko1@atdot.net> | 2019-08-09 13:02:31 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2019-08-09 13:04:56 +0900 |
commit | a9fd57056cdbf041f8f0ad1350846a175028542a (patch) | |
tree | 027360ea36d2b7ffe2e5537159b3db7c872afe50 /test/ripper | |
parent | 0176e74d6c3de4a71424d9bc0bc63c408550b488 (diff) | |
download | ruby-a9fd57056cdbf041f8f0ad1350846a175028542a.tar.gz |
double memory limit on MJIT.
On test with MJIT, sometimes it fails like:
http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/2189967
Diffstat (limited to 'test/ripper')
-rw-r--r-- | test/ripper/test_parser_events.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ripper/test_parser_events.rb b/test/ripper/test_parser_events.rb index 2c3b141904..59d4ad3987 100644 --- a/test/ripper/test_parser_events.rb +++ b/test/ripper/test_parser_events.rb @@ -1482,7 +1482,8 @@ class TestRipper::ParserEvents < Test::Unit::TestCase assert_equal("[fcall(proc,[],&block([],[void()]))]", parse("proc{|;y|}")) if defined?(Process::RLIMIT_AS) dir = File.dirname(__FILE__) - as = (RubyVM::MJIT.enabled? ? 150 : 100) * 1024 * 1024 + as = 100 * 1024 * 1024 # 100MB + as *= 2 if RubyVM::MJIT.enabled? # space for compiler assert_in_out_err(%W(-I#{dir} -rdummyparser), "Process.setrlimit(Process::RLIMIT_AS,#{as}); "\ "puts DummyParser.new('proc{|;y|!y}').parse", |