8000 test_jit.rb: change format of test error output · github/ruby@d31cbd4 · GitHub
[go: up one dir, main page]

Skip to content

Commit d31cbd4

Browse files
committed
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
1 parent bb44d9e commit d31cbd4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/lib/jit_support.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def remove_mjit_logs(stderr)
5757
end
5858

5959
def code_block(code)
60-
"```\n#{code}\n```\n\n"
60+
%Q["""\n#{code}\n"""\n\n]
6161
end
6262

6363
# We're retrying cc1 not found error on gcc, which should be solved in the future but ignored for now.

test/ruby/test_jit.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ def mjit#{i}
597597
end
598598
end;
599599

600-
debug_info = "stdout:\n```\n#{out}\n```\n\nstderr:\n```\n#{err}```\n"
600+
debug_info = %Q[stdout:\n"""\n#{out}\n"""\n\nstderr:\n"""\n#{err}"""\n]
601601
assert_equal('012345678910', out, debug_info)
602602
compactions, errs = err.lines.partition do |l|
603603
l.match?(/\AJIT compaction \(\d+\.\dms\): Compacted \d+ methods ->/)

0 commit comments

Comments
 (0)
0