test_jit.rb: debug cc1 availability
ENV didn't have any useful information. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
86a16b36ae
commit
4b3809114b
@ -547,9 +547,16 @@ class TestJIT < Test::Unit::TestCase
|
|||||||
actual = err.scan(/^#{JIT_SUCCESS_PREFIX}:/).size
|
actual = err.scan(/^#{JIT_SUCCESS_PREFIX}:/).size
|
||||||
|
|
||||||
# Debugging on CI
|
# Debugging on CI
|
||||||
if err.include?("gcc: error trying to exec 'cc1': execvp: No such file or directory")
|
if err.include?("gcc: error trying to exec 'cc1': execvp: No such file or directory") && RbConfig::CONFIG['CC'] == 'gcc'
|
||||||
$stderr.puts "test/ruby/test_jit.rb: ENV content:"
|
$stderr.puts "\ntest/ruby/test_jit.rb: DEBUG OUTPUT:"
|
||||||
PP.pp(ENV, $stderr)
|
cc1 = %x`gcc -print-prog-name=cc1`.rstrip
|
||||||
|
if $?.success?
|
||||||
|
$stderr.puts "cc1 path: #{cc1}"
|
||||||
|
$stderr.puts "executable?: #{File.executable?(cc1)}"
|
||||||
|
$stderr.puts "ls:\n#{IO.popen(['ls', '-la', File.dirname(cc1)], &:read)}"
|
||||||
|
else
|
||||||
|
$stderr.puts 'Failed to fetch cc1 path'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
assert_equal(
|
assert_equal(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user