From 990df873029a632c06dee9de9768bda8400fe922 Mon Sep 17 00:00:00 2001 From: eregon Date: Mon, 1 Apr 2019 20:46:10 +0000 Subject: [PATCH] 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 --- spec/ruby/command_line/feature_spec.rb | 8 ++++---- 1 file 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