summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_rubyoptions.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb
index 64d8d93d3f..6aacb80d2f 100644
--- a/test/ruby/test_rubyoptions.rb
+++ b/test/ruby/test_rubyoptions.rb
@@ -172,10 +172,15 @@ class TestRubyOptions < Test::Unit::TestCase
end
def test_enable
- if JITSupport.yjit_supported? || JITSupport.rjit_supported?
+ if JITSupport.yjit_supported?
assert_in_out_err(%w(--enable all -e) + [""], "", [], [])
assert_in_out_err(%w(--enable-all -e) + [""], "", [], [])
assert_in_out_err(%w(--enable=all -e) + [""], "", [], [])
+ elsif JITSupport.rjit_supported?
+ # Avoid failing tests by RJIT warnings
+ assert_in_out_err(%w(--enable all --disable rjit -e) + [""], "", [], [])
+ assert_in_out_err(%w(--enable-all --disable-rjit -e) + [""], "", [], [])
+ assert_in_out_err(%w(--enable=all --disable=rjit -e) + [""], "", [], [])
end
assert_in_out_err(%w(--enable foobarbazqux -e) + [""], "", [],
/unknown argument for --enable: `foobarbazqux'/)