Issue #5151 has been updated by Motohiro KOSAKI.

Category set to ext
Status changed from Feedback to Assigned
Assignee set to Kenta Murata

Mac??ºæ????®å????®ã???????ªã?®ã?§ã???????????????????????assign?????¾ã?????
----------------------------------------
Bug #5151: test/socket/test_socket.rb fail when udp connection failed
http://redmine.ruby-lang.org/issues/5151

Author: Ayumu AIZAWA
Status: Assigned
Priority: Normal
Assignee: Kenta Murata
Category: ext
Target version: 1.9.3
ruby -v: -


=begin
test/socket/test_socket.rb  ??? test_udp_server ?????? Socket.ip_address_list ??§å???????????
??¢ã????¬ã?¹ã?«å¯¾?????¦æ¡¦ç¶???§ã????ªã????¨ã????? RuntimeError ??§ã????¹ã?????失æ???????¾ã?????

???????????¹ã???????¡ã?¤ã?«ã?®ä¸­??? test_ip_address_list ??¯æ??????????¦ã???????®ã?§ã?????å¾??????¦ã???????ªã?¹ã??
??®ä¸­èº«è?ªä????¯å????ªã??????????ªã?®ã?§ã???¡¦ç¶???§ã????ªã????¨ã????¯ã?¹ã?­ã??????????¦ã????¾ã?£ã?¦ã???????®ã?§ã??
??ªã???????¨ã??????????¾ã????????

以ä??å®?è¡?çµ??????§ã?????

 $ make test-all TESTS='test/socket/test_socket.rb'
 ./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems "./test/runner.rb" --ruby="./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems" test/socket/test_socket.rb
 Run options: "--ruby=./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems"
 
 # Running tests:
 
 ..................E...
 
 Finished tests in 10.225113s, 2.1516 tests/s, 7.2371 assertions/s.
 
 1) Error:
 test_udp_server(TestSocket):
 RuntimeError: no response from #<Addrinfo: fd5e:b7ac:aaf8:9f02:223:32ff:feb4:f300>
 /Users/ayumin/github/ruby/test/socket/test_socket.rb:297:in `block (3 levels) in test_udp_server'
 /Users/ayumin/github/ruby/.ext/common/socket.rb:45:in `connect_internal'
 /Users/ayumin/github/ruby/.ext/common/socket.rb:92:in `connect'
 /Users/ayumin/github/ruby/test/socket/test_socket.rb:293:in `block (2 levels) in test_udp_server'
 /Users/ayumin/github/ruby/test/socket/test_socket.rb:292:in `each'
 /Users/ayumin/github/ruby/test/socket/test_socket.rb:292:in `block in test_udp_server'
 /Users/ayumin/github/ruby/.ext/common/socket.rb:553:in `udp_server_sockets'
 /Users/ayumin/github/ruby/test/socket/test_socket.rb:276:in `test_udp_server'
 
 22 tests, 74 assertions, 0 failures, 1 errors, 0 skips
 make: *** [yes-test-all] Error 1

??¹ã?­ã??????????????????????? https://gist.github.com/1121247 ??§ã?????

???????????©ç?¨å????®å??è¡?çµ??????¯ä»¥ä¸???®ã?¨ã???????§ã?????

 $ make test-all TESTS='test/socket/test_socket.rb'
 ./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems "./test/runner.rb" --ruby="./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems" test/socket/test_socket.rb
 Run options: "--ruby=./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems"
 
 # Running tests:
 
 ..................S...
 
 Finished tests in 20.225713s, 1.0877 tests/s, 3.6587 assertions/s.
 
 1) Skipped:
 test_udp_server(TestSocket) [/Users/ayumin/github/ruby/test/socket/test_socket.rb:307]:
 need sendmsg and recvmsg
 
 22 tests, 74 assertions, 0 failures, 0 errors, 1 skips

=end



-- 
http://redmine.ruby-lang.org