[前][次][番号順一覧][スレッド一覧]

ruby-changes:50193

From: k0kubun <ko1@a...>
Date: Thu, 8 Feb 2018 22:01:49 +0900 (JST)
Subject: [ruby-changes:50193] k0kubun:r62311 (trunk): test_jit.rb: add forgotten check

k0kubun	2018-02-08 22:01:43 +0900 (Thu, 08 Feb 2018)

  New Revision: 62311

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62311

  Log:
    test_jit.rb: add forgotten check
    
    I was going to check this in r62310...

  Modified files:
    trunk/test/ruby/test_jit.rb
Index: test/ruby/test_jit.rb
===================================================================
--- test/ruby/test_jit.rb	(revision 62310)
+++ test/ruby/test_jit.rb	(revision 62311)
@@ -62,7 +62,8 @@ class TestJIT < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_jit.rb#L62
     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]