mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
9dc2d2855e
commit
48e4f02fcb
1 changed files with 6 additions and 2 deletions
|
@ -35,14 +35,18 @@ module TestJITSupport
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return unless TestJITSupport.supported?
|
|
||||||
|
|
||||||
# Test for --jit option
|
# Test for --jit option
|
||||||
class TestJIT < Test::Unit::TestCase
|
class TestJIT < Test::Unit::TestCase
|
||||||
include TestJITSupport
|
include TestJITSupport
|
||||||
# Ensure all supported insns can be compiled. Only basic tests are included.
|
# Ensure all supported insns can be compiled. Only basic tests are included.
|
||||||
# TODO: ensure --dump=insns includes the expected insn
|
# 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
|
def test_compile_insn_nop
|
||||||
assert_compile_once('nil rescue true', result_inspect: 'nil')
|
assert_compile_once('nil rescue true', result_inspect: 'nil')
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue