summaryrefslogtreecommitdiff
path: root/spec/ruby/command_line
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-01 20:46:10 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-01 20:46:10 +0000
commit990df873029a632c06dee9de9768bda8400fe922 (patch)
tree59e3a7488e6f446476e7fdfc9b1fcade929affff /spec/ruby/command_line
parent960d059ef71901980c95cd28013b7a93bc3f83d5 (diff)
Make spec for the jit feature more general and not MRI-specific
* Other implementations should not define RubyVM. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/command_line')
-rw-r--r--spec/ruby/command_line/feature_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/command_line/feature_spec.rb b/spec/ruby/command_line/feature_spec.rb
index b2b6284bc49..2025768b417 100644
--- a/spec/ruby/command_line/feature_spec.rb
+++ b/spec/ruby/command_line/feature_spec.rb
@@ -39,10 +39,10 @@ describe "The --enable and --disable flags" do
ruby_version_is "2.6" do
it "can be used with jit" do
- # Only test if it can be disabled, because MJIT does not support all platforms, and
- # it can be disabled at build time with `./configure --disable-jit-support`.
- ruby_exe("p RubyVM::MJIT.enabled?", options: "--disable=jit").chomp.should == "false"
- ruby_exe("p RubyVM::MJIT.enabled?", options: "--disable-jit").chomp.should == "false"
+ ruby_exe("p :OK", options: "--enable=jit 2>&1").chomp.should == ":OK"
+ ruby_exe("p :OK", options: "--disable=jit 2>&1").chomp.should == ":OK"
+ ruby_exe("p :OK", options: "--enable-jit 2>&1").chomp.should == ":OK"
+ ruby_exe("p :OK", options: "--disable-jit 2>&1").chomp.should == ":OK"
end
end