diff --git a/test/lib/jit_support.rb b/test/lib/jit_support.rb index 3877c6ec7e..c1624cc3b2 100644 --- a/test/lib/jit_support.rb +++ b/test/lib/jit_support.rb @@ -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. diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb index e85a7cbee0..900a8342a3 100644 --- a/test/ruby/test_jit.rb +++ b/test/ruby/test_jit.rb @@ -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 ->/)