[前][次][番号順一覧][スレッド一覧]

ruby-changes:54566

From: k0kubun <ko1@a...>
Date: Thu, 10 Jan 2019 23:55:30 +0900 (JST)
Subject: [ruby-changes:54566] k0kubun:r66781 (trunk): test_jit.rb: change format of test error output

k0kubun	2019-01-10 23:55:24 +0900 (Thu, 10 Jan 2019)

  New Revision: 66781

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66781

  Log:
    test_jit.rb: change format of test error output
    
    to avoid breaking redmine quote like
    https://bugs.ruby-lang.org/issues/15522

  Modified files:
    trunk/test/lib/jit_support.rb
    trunk/test/ruby/test_jit.rb
Index: test/ruby/test_jit.rb
===================================================================
--- test/ruby/test_jit.rb	(revision 66780)
+++ test/ruby/test_jit.rb	(revision 66781)
@@ -597,7 +597,7 @@ class TestJIT < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_jit.rb#L597
         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 ->/)
Index: test/lib/jit_support.rb
===================================================================
--- test/lib/jit_support.rb	(revision 66780)
+++ test/lib/jit_support.rb	(revision 66781)
@@ -57,7 +57,7 @@ module JITSupport https://github.com/ruby/ruby/blob/trunk/test/lib/jit_support.rb#L57
   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.

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]