aboutsummaryrefslogtreecommitdiffstats
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.rb8
1 files changed, 6 insertions, 2 deletions
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