ruby-changes:46563
From: usa <ko1@a...>
Date: Fri, 12 May 2017 18:17:17 +0900 (JST)
Subject: [ruby-changes:46563] usa:r58678 (trunk): Skip the spec which uses `fork` on Windows
usa 2017-05-12 18:17:10 +0900 (Fri, 12 May 2017) New Revision: 58678 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58678 Log: Skip the spec which uses `fork` on Windows Modified files: trunk/spec/rubyspec/optional/capi/kernel_spec.rb Index: spec/rubyspec/optional/capi/kernel_spec.rb =================================================================== --- spec/rubyspec/optional/capi/kernel_spec.rb (revision 58677) +++ spec/rubyspec/optional/capi/kernel_spec.rb (revision 58678) @@ -389,23 +389,25 @@ describe "C-API Kernel function" do https://github.com/ruby/ruby/blob/trunk/spec/rubyspec/optional/capi/kernel_spec.rb#L389 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/