aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-12 04:00:45 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-12 04:00:45 +0000
commit48e4f02fcb19fb653992f3539a87fb60a6f0a02e (patch)
tree4eaf9e3397c17c13dd91110d8e6194432a31af03 /test
parent9dc2d2855ec6196e97e9693c25e9833b7a117284 (diff)
downloadruby-48e4f02fcb19fb653992f3539a87fb60a6f0a02e.tar.gz
test_jit.rb: explicitly skip for unsupported ones
MSP-Greg watches this metrics and this would be helpful for him. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-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