Sha256: d15162ace4365c5ce327062528cfeb956dae2c0e15ff9cbfdc4b647003b7d2ea

Contents?: true

Size: 335 Bytes

Versions: 37

Compression:

Stored size: 335 Bytes

Contents

require File.expand_path('spec/spec_helper')
cmd = "ps uaxw|grep ruby|wc -l"

processes_before = `#{cmd}`.to_i
Parallel.each((0..10).to_a, :in_processes => 5) { |a| a*2 }
processes_after = `#{cmd}`.to_i

if processes_before == processes_after
  print 'OK'
else
  print "FAIL: before:#{processes_before} -- after:#{processes_after}"
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
parallel-0.8.3 spec/cases/closes_processes_at_runtime.rb
parallel-0.8.2 spec/cases/closes_processes_at_runtime.rb
parallel-0.8.1 spec/cases/closes_processes_at_runtime.rb
parallel-0.8.0 spec/cases/closes_processes_at_runtime.rb
parallel-0.7.1 spec/cases/closes_processes_at_runtime.rb
parallel-0.7.0 spec/cases/closes_processes_at_runtime.rb
parallel-0.6.5 spec/cases/closes_processes_at_runtime.rb
parallel-0.6.4 spec/cases/closes_processes_at_runtime.rb
parallel-0.6.3 spec/cases/closes_processes_at_runtime.rb
parallel-0.6.2 spec/cases/closes_processes_at_runtime.rb
parallel-0.6.1 spec/cases/closes_processes_at_runtime.rb
parallel-0.6.0 spec/cases/closes_processes_at_runtime.rb
parallel-0.5.21 spec/cases/closes_processes_at_runtime.rb
parallel-0.5.20 spec/cases/closes_processes_at_runtime.rb
parallel-0.5.19 spec/cases/closes_processes_at_runtime.rb
parallel-0.5.18 spec/cases/closes_processes_at_runtime.rb
parallel-0.5.17 spec/cases/closes_processes_at_runtime.rb
parallel-0.5.16 spec/cases/closes_processes_at_runtime.rb
parallel-0.5.15 spec/cases/closes_processes_at_runtime.rb
parallel-0.5.14 spec/cases/closes_processes_at_runtime.rb