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:
parent
e3c5fbba91
commit
3032bdb1d3
1 changed files with 27 additions and 23 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue