mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_jit.rb: show debug info for success_count test
to investigate https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable11s/ruby-trunk/log/20181221T092505Z.fail.html.gz git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7bef465e9b
commit
6bbd46a072
1 changed files with 1 additions and 3 deletions
|
@ -877,10 +877,8 @@ class TestJIT < Test::Unit::TestCase
|
||||||
Process.waitpid(pid)
|
Process.waitpid(pid)
|
||||||
end;
|
end;
|
||||||
success_count = err.scan(/^#{JIT_SUCCESS_PREFIX}:/).size
|
success_count = err.scan(/^#{JIT_SUCCESS_PREFIX}:/).size
|
||||||
assert_equal(3, success_count)
|
|
||||||
|
|
||||||
lines = err.lines
|
|
||||||
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_equal(3, success_count, debug_info)
|
||||||
|
|
||||||
# assert no remove error
|
# assert no remove error
|
||||||
assert_equal("Successful MJIT finish\n" * 2, err.gsub(/^#{JIT_SUCCESS_PREFIX}:[^\n]+\n/, ''), debug_info)
|
assert_equal("Successful MJIT finish\n" * 2, err.gsub(/^#{JIT_SUCCESS_PREFIX}:[^\n]+\n/, ''), debug_info)
|
||||||
|
|
Loading…
Add table
Reference in a new issue