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

test_jit.rb: loosen output check

for interleaving between processes
https://gist.github.com/ko1/ace0374825377b41628d4590b7377601

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
k0kubun 2018-11-18 09:22:48 +00:00
parent 9b850d1a9a
commit fcd8412dcc

View file

@ -867,8 +867,7 @@ class TestJIT < Test::Unit::TestCase
debug_info = "stdout:\n```\n#{out}\n```\n\nstderr:\n```\n#{err}```\n" debug_info = "stdout:\n```\n#{out}\n```\n\nstderr:\n```\n#{err}```\n"
# assert no remove error # assert no remove error
assert_match(/^Successful MJIT finish$/, lines[3], debug_info) assert_equal("Successful MJIT finish\n" * 2, err.gsub(/^#{JIT_SUCCESS_PREFIX}:[^\n]+\n/, ''), debug_info)
assert_match(/^Successful MJIT finish$/, lines[4], debug_info)
# ensure objects are deleted # ensure objects are deleted
assert_send([Dir, :empty?, dir], debug_info) assert_send([Dir, :empty?, dir], debug_info)