diff options
author | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-18 19:37:46 +0000 |
---|---|---|
committer | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-18 19:37:46 +0000 |
commit | 17d20383ef2072745fdc305c4c9105b63a4b0c76 (patch) | |
tree | d75eee2dd6a0dd448df062818ba4815a2317efad /spec | |
parent | 4dc1c725f84a549ca9a55e1d3d15b7df44ff925e (diff) | |
download | ruby-17d20383ef2072745fdc305c4c9105b63a4b0c76.tar.gz |
Special case for Solaris 11x on RubyCI
* Where localhost is an alias but not the primary name of 127.0.0.1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ruby/library/socket/socket/gethostbyaddr_spec.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/ruby/library/socket/socket/gethostbyaddr_spec.rb b/spec/ruby/library/socket/socket/gethostbyaddr_spec.rb index cad6ed2dd0..b5f5942668 100644 --- a/spec/ruby/library/socket/socket/gethostbyaddr_spec.rb +++ b/spec/ruby/library/socket/socket/gethostbyaddr_spec.rb @@ -18,8 +18,11 @@ describe 'Socket.gethostbyaddr' do @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 |