summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-16 08:56:47 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-16 08:56:47 +0000
commit513e0ee53b684625f82ad1ef9862b089106fa3ea (patch)
treeaa48fb6b5f9a713fe815f6022d28902b416e7c13 /test
parent52607877c68f2c405dac50a13d5b73d35825c585 (diff)
* test/ruby/test_io.rb (TestIO#test_copy_stream_socket): fix
test hanging up issue. Patch by CHIKANAGA Tomoyuki. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_io.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index fba0800499..3df7771d6c 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -609,7 +609,7 @@ class TestIO < Test::Unit::TestCase
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 @@ class TestIO < Test::Unit::TestCase
assert_equal megacontent.bytesize, IO.copy_stream("megasrc", s1)
end
assert_equal(1, @usr1_rcvd)
- s1.close
ensure
+ s1.close
_, status = Process.waitpid2(pid) if pid
end
assert status.success?, status.inspect