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

ruby-changes:52249

From: eregon <ko1@a...>
Date: Sun, 19 Aug 2018 04:45:15 +0900 (JST)
Subject: [ruby-changes:52249] eregon:r64461 (trunk): Adapt pack_sockaddr_in specs for Solaris

eregon	2018-08-19 04:37:12 +0900 (Sun, 19 Aug 2018)

  New Revision: 64461

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

  Log:
    Adapt pack_sockaddr_in specs for Solaris

  Modified files:
    trunk/spec/ruby/library/socket/shared/pack_sockaddr.rb
Index: spec/ruby/library/socket/shared/pack_sockaddr.rb
===================================================================
--- spec/ruby/library/socket/shared/pack_sockaddr.rb	(revision 64460)
+++ spec/ruby/library/socket/shared/pack_sockaddr.rb	(revision 64461)
@@ -28,12 +28,25 @@ describe :socket_pack_sockaddr_in, share https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/socket/shared/pack_sockaddr.rb#L28
     end
   end
 
-  describe 'using an IPv6 address' do
-    it 'returns a String of 28 bytes' do
-      str = Socket.public_send(@method, 80, '::1')
+  platform_is_not :solaris do
+    describe 'using an IPv6 address' do
+      it 'returns a String of 28 bytes' do
+        str = Socket.public_send(@method, 80, '::1')
 
-      str.should be_an_instance_of(String)
-      str.bytesize.should == 28
+        str.should be_an_instance_of(String)
+        str.bytesize.should == 28
+      end
+    end
+  end
+
+  platform_is :solaris do
+    describe 'using an IPv6 address' do
+      it 'returns a String of 32 bytes' do
+        str = Socket.public_send(@method, 80, '::1')
+
+        str.should be_an_instance_of(String)
+        str.bytesize.should == 32
+      end
     end
   end
 end

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

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