diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-18 08:44:16 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-18 08:44:16 +0000 |
commit | 9b850d1a9a5069e16b0cd28d4bda3c2785445848 (patch) | |
tree | 9192d8fd551f5d0262be693c2456c943c4ca5587 /test/ruby/test_jit.rb | |
parent | 57efe84b134e8b7b528d4ea5567bb53880ace394 (diff) | |
download | ruby-9b850d1a9a5069e16b0cd28d4bda3c2785445848.tar.gz |
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
Diffstat (limited to 'test/ruby/test_jit.rb')
-rw-r--r-- | test/ruby/test_jit.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb index b25a9b15a2..3abbcba170 100644 --- a/test/ruby/test_jit.rb +++ b/test/ruby/test_jit.rb @@ -863,13 +863,14 @@ class TestJIT < Test::Unit::TestCase success_count = err.scan(/^#{JIT_SUCCESS_PREFIX}:/).size assert_equal(3, success_count) - # assert no remove error lines = err.lines - assert_match(/^Successful MJIT finish$/, lines[3]) - assert_match(/^Successful MJIT finish$/, lines[4]) + debug_info = "stdout:\n```\n#{out}\n```\n\nstderr:\n```\n#{err}```\n" + + # 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 - debug_info = "stdout:\n```\n#{out}\n```\n\nstderr:\n```\n#{err}```\n" assert_send([Dir, :empty?, dir], debug_info) end end if defined?(fork) |