ruby-changes:50262
From: k0kubun <ko1@a...>
Date: Mon, 12 Feb 2018 13:00:50 +0900 (JST)
Subject: [ruby-changes:50262] k0kubun:r62380 (trunk): test_jit.rb: explicitly skip for unsupported ones
k0kubun 2018-02-12 13:00:45 +0900 (Mon, 12 Feb 2018) New Revision: 62380 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62380 Log: test_jit.rb: explicitly skip for unsupported ones MSP-Greg watches this metrics and this would be helpful for him. Modified files: trunk/test/ruby/test_jit.rb Index: test/ruby/test_jit.rb =================================================================== --- test/ruby/test_jit.rb (revision 62379) +++ test/ruby/test_jit.rb (revision 62380) @@ -35,14 +35,18 @@ module TestJITSupport https://github.com/ruby/ruby/blob/trunk/test/ruby/test_jit.rb#L35 end end -return unless TestJITSupport.supported? - # Test for --jit option class TestJIT < Test::Unit::TestCase include TestJITSupport # Ensure all supported insns can be compiled. Only basic tests are included. # TODO: ensure --dump=insns includes the expected insn + def setup + unless TestJITSupport.supported? + skip 'JIT seems not supported on this platform' + end + end + def test_compile_insn_nop assert_compile_once('nil rescue true', result_inspect: 'nil') end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/