ruby-changes:55197
From: eregon <ko1@a...>
Date: Tue, 2 Apr 2019 05:46:13 +0900 (JST)
Subject: [ruby-changes:55197] eregon:r67404 (trunk): Make spec for the jit feature more general and not MRI-specific
eregon 2019-04-02 05:46:10 +0900 (Tue, 02 Apr 2019) New Revision: 67404 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67404 Log: Make spec for the jit feature more general and not MRI-specific * Other implementations should not define RubyVM. Modified files: trunk/spec/ruby/command_line/feature_spec.rb Index: spec/ruby/command_line/feature_spec.rb =================================================================== --- spec/ruby/command_line/feature_spec.rb (revision 67403) +++ spec/ruby/command_line/feature_spec.rb (revision 67404) @@ -39,10 +39,10 @@ describe "The --enable and --disable fla https://github.com/ruby/ruby/blob/trunk/spec/ruby/command_line/feature_spec.rb#L39 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/