From 9948b8bfec08d18c2803dd1fced82a6c28967441 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 29 Sep 2022 15:08:16 +0900 Subject: Skip unpack_sockaddr_in with http at Solaris platform http://rubyci.s3.amazonaws.com/solaris10-gcc/ruby-master/log/20220929T050003Z.fail.html.gz --- spec/ruby/library/socket/shared/pack_sockaddr.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'spec/ruby/library/socket/shared/pack_sockaddr.rb') diff --git a/spec/ruby/library/socket/shared/pack_sockaddr.rb b/spec/ruby/library/socket/shared/pack_sockaddr.rb index ca823742cb..9f6238e7bc 100644 --- a/spec/ruby/library/socket/shared/pack_sockaddr.rb +++ b/spec/ruby/library/socket/shared/pack_sockaddr.rb @@ -19,9 +19,11 @@ describe :socket_pack_sockaddr_in, shared: true do Socket.unpack_sockaddr_in(sockaddr_in).should == [0, '127.0.0.1'] end - it 'resolves the service name to a port' do - sockaddr_in = Socket.public_send(@method, 'http', '127.0.0.1') - Socket.unpack_sockaddr_in(sockaddr_in).should == [80, '127.0.0.1'] + platform_is_not :solaris do + it 'resolves the service name to a port' do + sockaddr_in = Socket.public_send(@method, 'http', '127.0.0.1') + Socket.unpack_sockaddr_in(sockaddr_in).should == [80, '127.0.0.1'] + end end describe 'using an IPv4 address' do -- cgit v1.2.1