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