diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-16 03:09:51 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-16 03:09:51 +0000 |
commit | 63cfc6ddb759c4c614f9fccaca11a47b8f091b70 (patch) | |
tree | 857ab2102956ce268a9a63216c11e4bc14a88821 /test/socket | |
parent | 3479ec2eed71bfad489b50e247e4190e0db691fc (diff) | |
download | ruby-63cfc6ddb759c4c614f9fccaca11a47b8f091b70.tar.gz ruby-63cfc6ddb759c4c614f9fccaca11a47b8f091b70.tar.xz ruby-63cfc6ddb759c4c614f9fccaca11a47b8f091b70.zip |
* ext/syck/rubyext.c (syck_resolver_transfer): remove C++ style
comment (//). [ruby-core:05793]
* lib/net/telnet.rb (Net::Telnet::waitfor): replace sysread with
readpartial. [ruby-talk:127641]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/socket')
-rw-r--r-- | test/socket/test_tcp.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/socket/test_tcp.rb b/test/socket/test_tcp.rb index 596919082..9e6623bdf 100644 --- a/test/socket/test_tcp.rb +++ b/test/socket/test_tcp.rb @@ -11,15 +11,16 @@ class TestTCPSocket < Test::Unit::TestCase svr = TCPServer.new("localhost", 0) th = Thread.new { c = svr.accept + Thread.pass ObjectSpace.each_object(String) {|s| s.replace "a" if s.length == 0x10000 and !s.frozen? } - c.print("x"*0x1000) + c.print("x"*0x10000) } addr = svr.addr sock = TCPSocket.open(addr[2], addr[1]) assert_raise(RuntimeError, SocketError) { - sock.recvfrom(0x10000) + p sock.recvfrom(0x10000) } ensure th.join |