diff options
author | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-04-01 20:46:10 +0000 |
---|---|---|
committer | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-04-01 20:46:10 +0000 |
commit | 990df873029a632c06dee9de9768bda8400fe922 (patch) | |
tree | 59e3a7488e6f446476e7fdfc9b1fcade929affff | |
parent | 960d059ef71901980c95cd28013b7a93bc3f83d5 (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
-rw-r--r-- | spec/ruby/command_line/feature_spec.rb | 8 |
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 b2b6284bc4..2025768b41 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 |