зеркало из https://github.com/github/ruby.git
test_jit.rb: change format of test error output
to avoid breaking redmine quote like https://bugs.ruby-lang.org/issues/15522 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
bb44d9ecf0
Коммит
d31cbd4ff9
|
@ -57,7 +57,7 @@ module JITSupport
|
|||
end
|
||||
|
||||
def code_block(code)
|
||||
"```\n#{code}\n```\n\n"
|
||||
%Q["""\n#{code}\n"""\n\n]
|
||||
end
|
||||
|
||||
# We're retrying cc1 not found error on gcc, which should be solved in the future but ignored for now.
|
||||
|
|
|
@ -597,7 +597,7 @@ class TestJIT < Test::Unit::TestCase
|
|||
end
|
||||
end;
|
||||
|
||||
debug_info = "stdout:\n```\n#{out}\n```\n\nstderr:\n```\n#{err}```\n"
|
||||
debug_info = %Q[stdout:\n"""\n#{out}\n"""\n\nstderr:\n"""\n#{err}"""\n]
|
||||
assert_equal('012345678910', out, debug_info)
|
||||
compactions, errs = err.lines.partition do |l|
|
||||
l.match?(/\AJIT compaction \(\d+\.\dms\): Compacted \d+ methods ->/)
|
||||
|
|
Загрузка…
Ссылка в новой задаче