mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/socket/test_socket.rb (test_udp_server): filter out unreachable
addresses. [ruby-dev:37970] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5dd1a4c14e
commit
a61786398a
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Feb 12 23:22:29 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* test/socket/test_socket.rb (test_udp_server): filter out unreachable
|
||||
addresses. [ruby-dev:37970]
|
||||
|
||||
Thu Feb 12 22:51:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* compile.c (hide_obj): OBJ_FREEZE() is not an expression. a patch
|
||||
|
|
|
@ -233,6 +233,9 @@ class TestSocket < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
Socket.udp_server_sockets(0) {|sockets|
|
||||
famlies = {}
|
||||
sockets.each {|s| famlies[s.local_address.afamily] = true }
|
||||
ip_addrs.reject! {|ai| !famlies[ai.afamily] }
|
||||
begin
|
||||
port = sockets.first.local_address.ip_port
|
||||
|
||||
|
|
Loading…
Reference in a new issue