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

ruby-changes:55115

From: k0kubun <ko1@a...>
Date: Thu, 21 Mar 2019 13:48:04 +0900 (JST)
Subject: [ruby-changes:55115] k0kubun:r67322 (trunk): Insert --jit-verbose=2 logs for mswin debugging

k0kubun	2019-03-21 13:47:59 +0900 (Thu, 21 Mar 2019)

  New Revision: 67322

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

  Log:
    Insert --jit-verbose=2 logs for mswin debugging

  Modified files:
    trunk/test/ruby/test_jit.rb
Index: test/ruby/test_jit.rb
===================================================================
--- test/ruby/test_jit.rb	(revision 67321)
+++ test/ruby/test_jit.rb	(revision 67322)
@@ -912,6 +912,9 @@ class TestJIT < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_jit.rb#L912
   def assert_eval_with_jit(script, stdout: nil, success_count:, min_calls: 1, insns: [], uplevel: 3)
     out, err = eval_with_jit(script, verbose: 1, min_calls: min_calls)
     actual = err.scan(/^#{JIT_SUCCESS_PREFIX}:/).size
+    if RUBY_PLATFORM.match?(/mswin/) && success_count != actual
+      _, err2 = eval_with_jit(script, verbose: 2, min_calls: min_calls)
+    end
 
     # Make sure that the script has insns expected to be tested
     used_insns = method_insns(script)
@@ -926,7 +929,7 @@ class TestJIT < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_jit.rb#L929
     assert_equal(
       success_count, actual,
       "Expected #{success_count} times of JIT success, but succeeded #{actual} times.\n\n"\
-      "script:\n#{code_block(script)}\nstderr:\n#{code_block(err)}",
+      "script:\n#{code_block(script)}\nstderr:\n#{code_block(err)}#{("\nstderr(verbose=2 retry):\n#{code_block(err2)}" if err2)}",
     )
     if stdout
       assert_equal(stdout, out, "Expected stdout #{out.inspect} to match #{stdout.inspect} with script:\n#{code_block(script)}")

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

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