summaryrefslogtreecommitdiff
path: root/spec/ruby/core/process
diff options
context:
space:
mode:
authorNAKAMURA Usaku <usa@ruby-lang.org>2019-04-30 04:09:25 +0900
committerNAKAMURA Usaku <usa@ruby-lang.org>2019-04-30 04:09:25 +0900
commiteb45ba61160dbae412407f232fe9b3252eb99362 (patch)
treee8572c44cd7853f1713bb9ccf5017329fa90f9de /spec/ruby/core/process
parent320f0aba49d17737ef965fc8c5f565dad96f514c (diff)
Skip the spec on Windows because RUBY_EXE is RUNRUBY and it calls ruby as grandchild
Diffstat (limited to 'spec/ruby/core/process')
-rw-r--r--spec/ruby/core/process/ppid_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/ruby/core/process/ppid_spec.rb b/spec/ruby/core/process/ppid_spec.rb
index 7d22755c77..47c32a8591 100644
--- a/spec/ruby/core/process/ppid_spec.rb
+++ b/spec/ruby/core/process/ppid_spec.rb
@@ -1,7 +1,9 @@
require_relative '../../spec_helper'
describe "Process.ppid" do
- it "returns the process id of the parent of this process" do
- ruby_exe("puts Process.ppid").should == "#{Process.pid}\n"
+ platform_is_not :windows do
+ it "returns the process id of the parent of this process" do
+ ruby_exe("puts Process.ppid").should == "#{Process.pid}\n"
+ end
end
end