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

ruby-changes:57705

From: Masaki <ko1@a...>
Date: Tue, 10 Sep 2019 12:41:12 +0900 (JST)
Subject: [ruby-changes:57705] f5024de002 (master): Remove check of ai.protocol

https://git.ruby-lang.org/ruby.git/commit/?id=f5024de002

From f5024de002fa82dfe5730b245ad24b8fc3a68424 Mon Sep 17 00:00:00 2001
From: Masaki Matsushita <glass.saga@g...>
Date: Tue, 10 Sep 2019 12:39:49 +0900
Subject: Remove check of ai.protocol

Solaris 10 returns addrinfo.ai_protocol as 0, not 6.

diff --git a/test/socket/test_addrinfo.rb b/test/socket/test_addrinfo.rb
index 68341c2..92b61ea 100644
--- a/test/socket/test_addrinfo.rb
+++ b/test/socket/test_addrinfo.rb
@@ -690,7 +690,6 @@ class TestSocketAddrinfo < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/socket/test_addrinfo.rb#L690
 
     def test_addrinfo_timeout
       ai = Addrinfo.getaddrinfo("localhost", "ssh", Socket::PF_INET, Socket::SOCK_STREAM, timeout: 1).fetch(0)
-      assert_equal(6, ai.protocol)
       assert_equal(22, ai.ip_port)
     end
   end
-- 
cgit v0.10.2


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

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