diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-21 04:47:59 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-21 04:47:59 +0000 |
commit | 81de7b9e622ecb57a607af8ba7c341ab8c659a4d (patch) | |
tree | 181c5e4778f9ba3b153f93b53a2ffd81a3e93bb0 /test/ruby/test_jit.rb | |
parent | 7aacb650153db6eb341907dff8c3f8445717e556 (diff) |
Insert --jit-verbose=2 logs for mswin debugging
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_jit.rb')
-rw-r--r-- | test/ruby/test_jit.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb index 900a8342a3..b9b085c976 100644 --- a/test/ruby/test_jit.rb +++ b/test/ruby/test_jit.rb @@ -912,6 +912,9 @@ class TestJIT < Test::Unit::TestCase 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 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)}") |