* test_fork.rb: no need to test if fork(2) is not implemented.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3eff6d398b
commit
4176051753
@ -10,10 +10,13 @@ assert_equal '0', %q{
|
||||
}, '[ruby-dev:32404]'
|
||||
|
||||
assert_finish 10, %q{
|
||||
children = (1..10).map{
|
||||
Thread.start{fork{}}.value
|
||||
}
|
||||
while !children.empty? and pid = Process.wait
|
||||
children.delete(pid)
|
||||
begin
|
||||
children = (1..10).map{
|
||||
Thread.start{fork{}}.value
|
||||
}
|
||||
while !children.empty? and pid = Process.wait
|
||||
children.delete(pid)
|
||||
end
|
||||
rescue NotImplementedError
|
||||
end
|
||||
}, '[ruby-core:22158]'
|
||||
|
Loading…
x
Reference in New Issue
Block a user