summaryrefslogtreecommitdiff
path: root/test/ruby/test_jit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_jit.rb')
-rw-r--r--test/ruby/test_jit.rb3
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