ruby-changes:50575
From: k0kubun <ko1@a...>
Date: Sun, 11 Mar 2018 18:32:54 +0900 (JST)
Subject: [ruby-changes:50575] k0kubun:r62720 (trunk): test_jit.rb: add debugging output
k0kubun 2018-03-11 18:32:48 +0900 (Sun, 11 Mar 2018) New Revision: 62720 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62720 Log: test_jit.rb: add debugging output Sometimes gcc fails to exec cc1 like this: https://gist.github.com/ko1/c3db8b193e9cc65c39c541e10d957509 I'm not sure why it happens at all. Please let me add this debugging output to inspect the random failure on CI for now. I'll remove this after we confirm it's not helpful. Modified files: trunk/test/ruby/test_jit.rb Index: test/ruby/test_jit.rb =================================================================== --- test/ruby/test_jit.rb (revision 62719) +++ test/ruby/test_jit.rb (revision 62720) @@ -545,6 +545,13 @@ class TestJIT < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_jit.rb#L545 def assert_eval_with_jit(script, stdout: nil, success_count:, min_calls: 1) out, err = eval_with_jit(script, verbose: 1, min_calls: min_calls) actual = err.scan(/^#{JIT_SUCCESS_PREFIX}:/).size + + # Debugging on CI + if stderr.include?("gcc: error trying to exec 'cc1': execvp: No such file or directory") + puts "test/ruby/test_jit.rb: ENV content:" + pp ENV + end + assert_equal( success_count, actual, "Expected #{success_count} times of JIT success, but succeeded #{actual} times.\n\n"\ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/