diff options
Diffstat (limited to 'test')
-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 |