ruby-changes:20074
From: kosaki <ko1@a...>
Date: Thu, 16 Jun 2011 17:57:06 +0900 (JST)
Subject: [ruby-changes:20074] kosaki:r32121 (trunk): * test/ruby/test_io.rb (TestIO#test_copy_stream_socket): fix
kosaki 2011-06-16 17:56:47 +0900 (Thu, 16 Jun 2011) New Revision: 32121 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32121 Log: * test/ruby/test_io.rb (TestIO#test_copy_stream_socket): fix test hanging up issue. Patch by CHIKANAGA Tomoyuki. Modified files: trunk/ChangeLog trunk/test/ruby/test_io.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 32120) +++ ChangeLog (revision 32121) @@ -1,3 +1,8 @@ +Thu Jun 16 17:55:07 2011 KOSAKI Motohiro <kosaki.motohiro@g...> + + * test/ruby/test_io.rb (TestIO#test_copy_stream_socket): fix + test hanging up issue. Patch by CHIKANAGA Tomoyuki. + Thu Jun 16 15:17:39 2011 Eric Hodel <drbrain@s...> * variable.c (const_missing): Add simple example of const_missing. Index: test/ruby/test_io.rb =================================================================== --- test/ruby/test_io.rb (revision 32120) +++ test/ruby/test_io.rb (revision 32121) @@ -609,7 +609,7 @@ skip "nonblocking IO for pipe is not implemented" end trapping_usr1 do - nr = 10 + nr = 30 begin pid = fork do s1.close @@ -622,8 +622,8 @@ assert_equal megacontent.bytesize, IO.copy_stream("megasrc", s1) end assert_equal(1, @usr1_rcvd) + ensure s1.close - ensure _, status = Process.waitpid2(pid) if pid end assert status.success?, status.inspect -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/