aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-12 08:11:35 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-12 08:11:35 +0000
commit706c1e24439aa4726f509ec661981c9c1e346099 (patch)
treec750313b0361e2bec3efe3595ae16bfb39e9c69b
parent57146168af9266a29dfd7bde43b65d29fab81764 (diff)
downloadruby-706c1e24439aa4726f509ec661981c9c1e346099.tar.gz
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
-rw-r--r--spec/rubyspec/core/process/status/pid_spec.rb16
1 files changed, 9 insertions, 7 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
+ before :each do
+ @pid = ruby_exe("print $$").to_i
+ end
- it "returns the pid of the process" do
- $?.pid.should == @pid
- end
+ it "returns the pid of the process" do
+ $?.pid.should == @pid
+ end
+ end
end