Sha256: ed40b7639f7a099de2c728aaf7f0b10aec9d8b76280026d1ec3afdc31b85612a

Contents?: true

Size: 350 Bytes

Versions: 56

Compression:

Stored size: 350 Bytes

Contents

require File.expand_path('../spec_helper', __FILE__)

shared_examples_for "a platform that provides the child's pid" do
  it "knows the child's pid" do
    Tempfile.open("pid-spec") do |file|
      process = write_pid(file.path).start
      process.wait

      expect(process.pid).to eq rewind_and_read(file).chomp.to_i
    end
  end
end

Version data entries

56 entries across 42 versions & 5 rubygems

Version Path
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/childprocess-0.6.3/spec/pid_behavior.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.7.0/gems/childprocess-0.6.3/spec/pid_behavior.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/gems/childprocess-0.6.3/spec/pid_behavior.rb
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/childprocess-0.6.3/spec/pid_behavior.rb
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.6.0/gems/childprocess-0.6.3/spec/pid_behavior.rb
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.6.0/gems/childprocess-0.6.3/spec/pid_behavior.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/gems/childprocess-0.6.3/spec/pid_behavior.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/childprocess-0.6.3/spec/pid_behavior.rb
tdiary-5.0.13 vendor/bundle/gems/childprocess-0.9.0/spec/pid_behavior.rb
tdiary-5.0.12.1 vendor/bundle/gems/childprocess-0.9.0/spec/pid_behavior.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/gems/childprocess-0.6.3/spec/pid_behavior.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.6.0/gems/childprocess-0.6.3/spec/pid_behavior.rb
childprocess-1.0.0 spec/pid_behavior.rb
vagrant-unbundled-2.2.3.0 vendor/bundle/ruby/2.5.0/gems/childprocess-0.6.3/spec/pid_behavior.rb
tdiary-5.0.11 vendor/bundle/gems/childprocess-0.9.0/spec/pid_behavior.rb
vagrant-unbundled-2.2.2.0 vendor/bundle/ruby/2.5.0/gems/childprocess-0.6.3/spec/pid_behavior.rb
vagrant-unbundled-2.2.0.0 vendor/bundle/ruby/2.5.0/gems/childprocess-0.6.3/spec/pid_behavior.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/childprocess-0.9.0/spec/pid_behavior.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/childprocess-0.9.0/spec/pid_behavior.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/childprocess-0.9.0/spec/pid_behavior.rb