diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb index dadb8c3afd..67bbb669e9 100644 --- a/test/ruby/test_jit.rb +++ b/test/ruby/test_jit.rb @@ -35,14 +35,18 @@ module TestJITSupport 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