diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-08 13:01:43 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-08 13:01:43 +0000 |
commit | 1491ef544d22bfe5cd5540ff3f8e2995bfdb89da (patch) | |
tree | a07e19d48ffe69b621b7970eeb4245d3816dbd2f | |
parent | 7e57ff99e556622ed406e8fd2ee84280ade99cf6 (diff) |
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
-rw-r--r-- | test/ruby/test_jit.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb index 2257064d7b..c3c11a1efb 100644 --- a/test/ruby/test_jit.rb +++ b/test/ruby/test_jit.rb @@ -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 |