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
This commit is contained in:
eregon 2019-04-01 20:46:10 +00:00
Родитель 960d059ef7
Коммит 990df87302
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -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