1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test updated.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2009-02-11 15:29:35 +00:00
parent e3c5fbba91
commit 3032bdb1d3

View file

@ -229,9 +229,11 @@ class TestSocket < Test::Unit::TestCase
begin
ip_addrs = Socket.ip_address_list
rescue NotImplementedError
return
end
sockets = Socket.udp_server_sockets(0)
Socket.udp_server_sockets(0) {|sockets|
begin
port = sockets.first.local_address.ip_port
th = Thread.new {
@ -258,5 +260,7 @@ class TestSocket < Test::Unit::TestCase
th.join
end
end
}
end
end if defined?(Socket)