diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-09 00:32:55 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-09 00:32:55 +0000 |
commit | 7c5459bd8616187ccea317108a23b439793c510b (patch) | |
tree | 8a9ed3fbf3b44d39f1d642ca814925bf95cd570d /test | |
parent | a11817c3a8d0b4514117554719ea0421edea7000 (diff) | |
download | ruby-7c5459bd8616187ccea317108a23b439793c510b.tar.gz |
.travis.yml: force to execute JIT test on Travis
test_jit.rb: with environment variable RUBY_FORCE_TEST_JIT, we can force
to test JIT availability.
I wanted to have such CI, but Travis was the only option which I can
modify easily.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_jit.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb index f519f72059..5414904e5a 100644 --- a/test/ruby/test_jit.rb +++ b/test/ruby/test_jit.rb @@ -61,6 +61,12 @@ class TestJIT < Test::Unit::TestCase def jit_supported? return @jit_supported if defined?(@jit_supported) + # Experimental. If you want to ensure JIT is working with this test, please set this for now. + if ENV.key?('RUBY_FORCE_TEST_JIT') + return @jit_supported = true + end + + # Very pessimistic check. With this check, we can't ensure JIT is working. begin _, err = eval_with_jit('proc {}.call', verbose: 1, min_calls: 1, timeout: 10) @jit_supported = err.match?(JIT_SUCCESS_PREFIX) |