mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
f4fffbfe70
commit
6e4d65cdc6
1 changed files with 16 additions and 14 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue