[前][次][番号順一覧][スレッド一覧]

ruby-changes:38835

From: nobu <ko1@a...>
Date: Tue, 16 Jun 2015 18:26:45 +0900 (JST)
Subject: [ruby-changes:38835] nobu:r50916 (trunk): test_nonblock.rb: fix failure on OSX

nobu	2015-06-16 18:26:26 +0900 (Tue, 16 Jun 2015)

  New Revision: 50916

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50916

  Log:
    test_nonblock.rb: fix failure on OSX
    
    * test/socket/test_nonblock.rb (test_recvfrom_nonblock_no_exception):
      no destination to already connected socket.  fix failure on OSX.

  Modified files:
    trunk/test/socket/test_nonblock.rb
Index: test/socket/test_nonblock.rb
===================================================================
--- test/socket/test_nonblock.rb	(revision 50915)
+++ test/socket/test_nonblock.rb	(revision 50916)
@@ -289,7 +289,7 @@ class TestSocketNonblock < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/test/socket/test_nonblock.rb#L289
   def test_recvfrom_nonblock_no_exception
     udp_pair do |s1, s2|
       assert_equal :wait_readable, s1.recvfrom_nonblock(100, exception: false)
-      s2.send("aaa", 0, s1.getsockname)
+      s2.send("aaa", 0)
       assert s1.wait_readable
       mesg, inet_addr = s1.recvfrom_nonblock(100, exception: false)
       assert_equal(4, inet_addr.length)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]