зеркало из https://github.com/github/ruby.git
Skip the spec which uses `fork` on Windows
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
f4fffbfe70
Коммит
6e4d65cdc6
|
@ -389,23 +389,25 @@ describe "C-API Kernel function" do
|
|||
end
|
||||
end
|
||||
|
||||
describe "rb_set_end_proc" do
|
||||
before :each do
|
||||
@r, @w = IO.pipe
|
||||
end
|
||||
platform_is_not :windows do
|
||||
describe "rb_set_end_proc" do
|
||||
before :each do
|
||||
@r, @w = IO.pipe
|
||||
end
|
||||
|
||||
after :each do
|
||||
@r.close
|
||||
@w.close
|
||||
Process.wait @pid
|
||||
end
|
||||
after :each do
|
||||
@r.close
|
||||
@w.close
|
||||
Process.wait @pid
|
||||
end
|
||||
|
||||
it "runs a C function on shutdown" do
|
||||
@pid = fork {
|
||||
@s.rb_set_end_proc(@w)
|
||||
}
|
||||
it "runs a C function on shutdown" do
|
||||
@pid = fork {
|
||||
@s.rb_set_end_proc(@w)
|
||||
}
|
||||
|
||||
@r.read(1).should == "e"
|
||||
@r.read(1).should == "e"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче