diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-18 01:49:17 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-18 01:49:17 +0000 |
commit | d6879f306d421f6bfccdaa6c028e3f2618c05310 (patch) | |
tree | 2e05220df5e7ed43f62cbabf4e538f4f9a50f1a9 /bootstraptest | |
parent | 7cbae9cefc7d844ea514d313bafa75e41303e990 (diff) | |
download | ruby-d6879f306d421f6bfccdaa6c028e3f2618c05310.tar.gz ruby-d6879f306d421f6bfccdaa6c028e3f2618c05310.tar.xz ruby-d6879f306d421f6bfccdaa6c028e3f2618c05310.zip |
* bootstraptest/test_fork.rb: test for [ruby-core:22158]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_fork.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bootstraptest/test_fork.rb b/bootstraptest/test_fork.rb index 743c22c25..6a34d9b4a 100644 --- a/bootstraptest/test_fork.rb +++ b/bootstraptest/test_fork.rb @@ -8,3 +8,12 @@ assert_equal '0', %q{ 0 end }, '[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) + end +}, '[ruby-core:22158]' |