diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-10 14:55:24 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-10 14:55:24 +0000 |
commit | d31cbd4ff99c609f5a1b6b0ccf890c603db02e86 (patch) | |
tree | 19dbc682b9d473ac9076e66deb6e7583049f657d | |
parent | bb44d9ecf035f2dac47606c50f7e797c79a5a367 (diff) |
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
-rw-r--r-- | test/lib/jit_support.rb | 2 | ||||
-rw-r--r-- | 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 ->/) |