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

ruby-changes:52256

From: eregon <ko1@a...>
Date: Sun, 19 Aug 2018 05:15:13 +0900 (JST)
Subject: [ruby-changes:52256] eregon:r64463 (trunk): Special case for Solaris 11x on RubyCI

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

  New Revision: 64463

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

  Log:
    Special case for Solaris 11x on RubyCI
    
    * Where localhost is an alias but not the primary name of 127.0.0.1.

  Modified files:
    trunk/spec/ruby/library/socket/socket/gethostbyaddr_spec.rb
Index: spec/ruby/library/socket/socket/gethostbyaddr_spec.rb
===================================================================
--- spec/ruby/library/socket/socket/gethostbyaddr_spec.rb	(revision 64462)
+++ spec/ruby/library/socket/socket/gethostbyaddr_spec.rb	(revision 64463)
@@ -18,8 +18,11 @@ describe 'Socket.gethostbyaddr' do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/socket/socket/gethostbyaddr_spec.rb#L18
           @array = Socket.gethostbyaddr(@addr)
         end
 
-        it 'includes the hostname as the first value' do
-          @array[0].should == SocketSpecs.hostname_reverse_lookup
+        # RubyCI Solaris 11x defines 127.0.0.1 as unstable11x
+        platform_is_not :"solaris2.11" do
+          it 'includes the hostname as the first value' do
+            @array[0].should == SocketSpecs.hostname_reverse_lookup
+          end
         end
 
         it 'includes the aliases as the 2nd value' do

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

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