From 877d1dd1e7e880652d3f329eb0b4b694319d099e Mon Sep 17 00:00:00 2001 From: usa Date: Fri, 12 May 2017 08:11:35 +0000 Subject: [PATCH] Skip on Windows because it always fails On Windows, when invoking ruby via runruby.rb, the pid of invoker and of invokee are diffrent. Therefore, this spec always fails. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- spec/rubyspec/core/process/status/pid_spec.rb | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/spec/rubyspec/core/process/status/pid_spec.rb b/spec/rubyspec/core/process/status/pid_spec.rb index 00f2a45820..3389c242ff 100644 --- a/spec/rubyspec/core/process/status/pid_spec.rb +++ b/spec/rubyspec/core/process/status/pid_spec.rb @@ -1,13 +1,15 @@ require File.expand_path('../../../../spec_helper', __FILE__) -describe "Process::Status#pid" do +platform_is_not :windows do + describe "Process::Status#pid" do + + before :each do + @pid = ruby_exe("print $$").to_i + end + + it "returns the pid of the process" do + $?.pid.should == @pid + end - before :each do - @pid = ruby_exe("print $$").to_i end - - it "returns the pid of the process" do - $?.pid.should == @pid - end - end