Sha256: bc39314f514d4b8051277278ae780f019af45012a60ef6fcf6bf931c10f5c577

Contents?: true

Size: 461 Bytes

Versions: 64

Compression:

Stored size: 461 Bytes

Contents

require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper'

=begin
describe "Process.ppid" do
  it "returns the process id of the parent of this process" do

    read, write = IO.pipe

    child_pid = Process.fork {
      read.close
      write << "#{Process.ppid}\n"
      write.close
      exit!
    }
    write.close
    pid = read.gets
    read.close
    Process.wait(child_pid)
    pid.to_i.should == Process.pid
  end
end
=end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
rhodes-2.0.2 spec/framework_spec/app/spec/core/process/ppid_spec.rb
rhodes-2.0.0 spec/framework_spec/app/spec/core/process/ppid_spec.rb
rhodes-2.0.0.rc2 spec/framework_spec/app/spec/core/process/ppid_spec.rb
rhodes-2.0.0.rc1 spec/framework_spec/app/spec/core/process/ppid_spec.rb