ruby-changes:34525
From: nobu <ko1@a...>
Date: Sun, 29 Jun 2014 03:13:01 +0900 (JST)
Subject: [ruby-changes:34525] nobu:r46606 (trunk): test_fork.rb: wait signals
nobu 2014-06-29 03:12:47 +0900 (Sun, 29 Jun 2014) New Revision: 46606 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46606 Log: test_fork.rb: wait signals * bootstraptest/test_fork.rb: wait until receiving both singals, upto 0.1sec. Modified files: trunk/bootstraptest/test_fork.rb Index: bootstraptest/test_fork.rb =================================================================== --- bootstraptest/test_fork.rb (revision 46605) +++ bootstraptest/test_fork.rb (revision 46606) @@ -66,6 +66,7 @@ assert_equal '[1, 2]', %q{ https://github.com/ruby/ruby/blob/trunk/bootstraptest/test_fork.rb#L66 Process.kill(:TERM, pid) end Process.wait(pid) + 100.times {break if a.size > 1; sleep 0.001} a.sort rescue NotImplementedError [1, 2] -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/