mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_jit.rb: don't force to test --jit-wait
for platforms which can't use JIT. Such platforms can time out with eval_with_jit. http://ci.rvm.jp/results/trunk_gcc5@silicon-docker/509911 http://ci.rvm.jp/results/trunk_gcc4@silicon-docker/509904 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
288b44328d
commit
5e09125581
1 changed files with 2 additions and 2 deletions
|
@ -11,6 +11,8 @@ class TestJIT < Test::Unit::TestCase
|
|||
]
|
||||
|
||||
def test_jit
|
||||
skip unless jit_supported?
|
||||
|
||||
assert_eval_with_jit('print proc { 1 + 1 }.call', stdout: '2', success_count: 1)
|
||||
end
|
||||
|
||||
|
@ -56,8 +58,6 @@ class TestJIT < Test::Unit::TestCase
|
|||
"```\n#{code}\n```\n\n"
|
||||
end
|
||||
|
||||
# If this is false, tests which require JIT should be skipped.
|
||||
# When this is not checked, probably the test expects Ruby to behave in the same way even if JIT is not supported.
|
||||
def jit_supported?
|
||||
return @jit_supported if defined?(@jit_supported)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue