зеркало из https://github.com/github/ruby.git
spec: skip Process wait specs on MJIT
until [Bug #14867] is fixed. I want to start running CI with MJIT enabled before fixing the problem. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
ea0cede5aa
Коммит
359dd59db2
|
@ -39,3 +39,9 @@ end
|
|||
def with_feature(*features, &block)
|
||||
FeatureGuard.new(*features).run_if(:with_feature, &block)
|
||||
end
|
||||
|
||||
MSpecEnv.class_eval do
|
||||
def without_feature(*features, &block)
|
||||
FeatureGuard.new(*features).run_unless(:without_feature, &block)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -14,6 +14,7 @@ describe "Process.wait2" do
|
|||
end
|
||||
end
|
||||
|
||||
without_feature :mjit do # [Bug #14867]
|
||||
platform_is_not :windows do
|
||||
it "returns the pid and status of child process" do
|
||||
pidf = Process.fork { Process.exit! 99 }
|
||||
|
@ -29,4 +30,5 @@ describe "Process.wait2" do
|
|||
lambda { Process.wait2 }.should raise_error(Errno::ECHILD)
|
||||
lambda { Process.wait2 }.should raise_error(StandardError)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -12,6 +12,7 @@ describe "Process.wait" do
|
|||
end
|
||||
end
|
||||
|
||||
without_feature :mjit do # [Bug #14867]
|
||||
it "raises an Errno::ECHILD if there are no child processes" do
|
||||
lambda { Process.wait }.should raise_error(Errno::ECHILD)
|
||||
end
|
||||
|
@ -87,4 +88,5 @@ describe "Process.wait" do
|
|||
lambda { Process.kill(0, pid) }.should raise_error(Errno::ESRCH)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -8,6 +8,7 @@ describe "Process.waitall" do
|
|||
end
|
||||
end
|
||||
|
||||
without_feature :mjit do # [Bug #14867]
|
||||
it "returns an empty array when there are no children" do
|
||||
Process.waitall.should == []
|
||||
end
|
||||
|
@ -45,4 +46,5 @@ describe "Process.waitall" do
|
|||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -49,4 +49,5 @@ class MSpecScript
|
|||
MSpec.enable_feature :fiber_library
|
||||
MSpec.enable_feature :fork if respond_to?(:fork, true)
|
||||
MSpec.enable_feature :encoding
|
||||
MSpec.enable_feature :mjit if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled?
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче