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

ruby-changes:52252

From: eregon <ko1@a...>
Date: Sun, 19 Aug 2018 04:55:15 +0900 (JST)
Subject: [ruby-changes:52252] eregon:r64458 (trunk): Add guards for Solaris for socket specs

eregon	2018-08-19 04:36:26 +0900 (Sun, 19 Aug 2018)

  New Revision: 64458

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

  Log:
    Add guards for Solaris for socket specs

  Modified files:
    trunk/spec/ruby/library/socket/addrinfo/initialize_spec.rb
    trunk/spec/ruby/library/socket/constants/constants_spec.rb
Index: spec/ruby/library/socket/constants/constants_spec.rb
===================================================================
--- spec/ruby/library/socket/constants/constants_spec.rb	(revision 64457)
+++ spec/ruby/library/socket/constants/constants_spec.rb	(revision 64458)
@@ -89,10 +89,10 @@ describe "Socket::Constants" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/socket/constants/constants_spec.rb#L89
 
   platform_is_not :windows do
     it 'defines SCM options' do
-      platform_is :darwin, :freebsd do
+      platform_is :darwin, :freebsd, :solaris do
         Socket::Constants.should have_constant('SCM_CREDS')
       end
-      platform_is_not :darwin, :freebsd do
+      platform_is_not :darwin, :freebsd, :solaris do
         Socket::Constants.should have_constant('SCM_CREDENTIALS')
       end
     end
Index: spec/ruby/library/socket/addrinfo/initialize_spec.rb
===================================================================
--- spec/ruby/library/socket/addrinfo/initialize_spec.rb	(revision 64457)
+++ spec/ruby/library/socket/addrinfo/initialize_spec.rb	(revision 64458)
@@ -360,7 +360,7 @@ describe "Addrinfo#initialize" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/socket/addrinfo/initialize_spec.rb#L360
           end
         end
 
-        platform_is_not :windows do
+        platform_is_not :windows, :solaris do
           (Socket.constants.grep(/^IPPROTO/) - valid).each do |type|
             it "raises SocketError when using #{type}" do
               value = Socket.const_get(type)
@@ -388,7 +388,7 @@ describe "Addrinfo#initialize" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/socket/addrinfo/initialize_spec.rb#L388
           end
         end
 
-        platform_is_not :windows do
+        platform_is_not :windows, :solaris do
           (Socket.constants.grep(/^IPPROTO/) - valid).each do |type|
             it "raises SocketError when using #{type}" do
               value = Socket.const_get(type)
@@ -447,7 +447,7 @@ describe "Addrinfo#initialize" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/socket/addrinfo/initialize_spec.rb#L447
         end
       end
 
-      platform_is_not :windows do
+      platform_is_not :windows, :solaris do
         describe 'and the socket type is set to SOCK_SEQPACKET' do
           before do
             @socktype = Socket::SOCK_SEQPACKET
@@ -491,7 +491,7 @@ describe "Addrinfo#initialize" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/socket/addrinfo/initialize_spec.rb#L491
           end
         end
 
-        platform_is_not :windows do
+        platform_is_not :windows, :solaris do
           (Socket.constants.grep(/^IPPROTO/) - valid).each do |type|
             it "raises SocketError when using #{type}" do
               value = Socket.const_get(type)

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

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