From d31cbd4ff99c609f5a1b6b0ccf890c603db02e86 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Thu, 10 Jan 2019 14:55:24 +0000 Subject: [PATCH] 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 --- test/lib/jit_support.rb | 2 +- test/ruby/test_jit.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ->/)