test_jit.rb: add forgotten check

I was going to check this in r62310...

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
k0kubun 2018-02-08 13:01:43 +00:00
parent 7e57ff99e5
commit 1491ef544d

View File

@ -62,7 +62,8 @@ class TestJIT < Test::Unit::TestCase
return @jit_supported if defined?(@jit_supported)
begin
@jit_supported = eval_with_jit('proc {}.call', verbose: 1, min_calls: 1, timeout: 10)
_, err = eval_with_jit('proc {}.call', verbose: 1, min_calls: 1, timeout: 10)
@jit_supported = err.match?(JIT_SUCCESS_PREFIX)
rescue Timeout::Error
$stderr.puts "TestJIT: #jit_supported? check timed out"
@jit_supported = false