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

test_jit.rb: dump information to debug test failure

debugging
http://ci.rvm.jp/results/trunk-vm-asserts@silicon-docker/1466123

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
k0kubun 2018-11-18 08:44:16 +00:00
parent 57efe84b13
commit 9b850d1a9a

View file

@ -863,13 +863,14 @@ class TestJIT < Test::Unit::TestCase
success_count = err.scan(/^#{JIT_SUCCESS_PREFIX}:/).size success_count = err.scan(/^#{JIT_SUCCESS_PREFIX}:/).size
assert_equal(3, success_count) assert_equal(3, success_count)
# assert no remove error
lines = err.lines lines = err.lines
assert_match(/^Successful MJIT finish$/, lines[3]) debug_info = "stdout:\n```\n#{out}\n```\n\nstderr:\n```\n#{err}```\n"
assert_match(/^Successful MJIT finish$/, lines[4])
# assert no remove error
assert_match(/^Successful MJIT finish$/, lines[3], debug_info)
assert_match(/^Successful MJIT finish$/, lines[4], debug_info)
# ensure objects are deleted # ensure objects are deleted
debug_info = "stdout:\n```\n#{out}\n```\n\nstderr:\n```\n#{err}```\n"
assert_send([Dir, :empty?, dir], debug_info) assert_send([Dir, :empty?, dir], debug_info)
end end
end if defined?(fork) end if defined?(fork)