1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add assert_no_exits alias

This commit is contained in:
John Hawthorn 2021-07-15 16:38:26 -07:00 committed by Alan Wu
parent 4040ca8293
commit 9c9e23e277

View file

@ -137,6 +137,10 @@ class TestYJIT < Test::Unit::TestCase
RUBY
end
def assert_no_exits(script)
assert_compiles(script)
end
def assert_compiles(test_script, insns: [], min_calls: 1, stdout: nil, exits: {})
reset_stats = <<~RUBY
YJIT.runtime_stats