summaryrefslogtreecommitdiff
path: root/spec/ruby/core/process/ppid_spec.rb
blob: 47c32a859103c27c1c296df1fe64171310a82963 (plain)
1
2
3
4
5
6
7
8
9
require_relative '../../spec_helper'

describe "Process.ppid" do
  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