diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-11 14:50:21 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-11 14:50:21 +0000 |
commit | 3db5b21140956de514ab5300824545f34ded6504 (patch) | |
tree | ad50c3a309ac2a20fac7f4a6e9118d40f121dded /test | |
parent | 33d318a29e99f738de963b539514aabea0416137 (diff) | |
download | ruby-3db5b21140956de514ab5300824545f34ded6504.tar.gz |
test_rubyvm_mjit.rb: skip testing MJIT if not supported
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_rubyvm_mjit.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_rubyvm_mjit.rb b/test/ruby/test_rubyvm_mjit.rb index f4612ed902..ce4940ba2d 100644 --- a/test/ruby/test_rubyvm_mjit.rb +++ b/test/ruby/test_rubyvm_mjit.rb @@ -5,6 +5,12 @@ require_relative '../lib/jit_support' class TestRubyVMMJIT < Test::Unit::TestCase include JITSupport + def setup + unless JITSupport.supported? + skip 'JIT seems not supported on this platform' + end + end + def test_pause out, err = eval_with_jit(<<~'EOS', verbose: 1, min_calls: 1, wait: false) i = 0 |