From ebff0059f4a45d02abb66a7f5ed2a4697136b940 Mon Sep 17 00:00:00 2001 From: eregon Date: Wed, 5 Sep 2018 20:39:19 +0000 Subject: Add platform guards for AIX * Most of these seem OS bugs. * See https://rubyci.org/logs/rubyci.s3.amazonaws.com/aix71_ppc/ruby-trunk/log/20180905T103302Z.fail.html.gz git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- .../library/socket/unixsocket/local_address_spec.rb | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'spec/ruby/library/socket/unixsocket') diff --git a/spec/ruby/library/socket/unixsocket/local_address_spec.rb b/spec/ruby/library/socket/unixsocket/local_address_spec.rb index 8c77519830..56b3ccc557 100644 --- a/spec/ruby/library/socket/unixsocket/local_address_spec.rb +++ b/spec/ruby/library/socket/unixsocket/local_address_spec.rb @@ -21,20 +21,24 @@ with_feature :unix_socket do end describe 'the returned Addrinfo' do - it 'uses AF_UNIX as the address family' do - @client.local_address.afamily.should == Socket::AF_UNIX - end - - it 'uses PF_UNIX as the protocol family' do - @client.local_address.pfamily.should == Socket::PF_UNIX + platform_is_not :aix do + it 'uses AF_UNIX as the address family' do + @client.local_address.afamily.should == Socket::AF_UNIX + end + + it 'uses PF_UNIX as the protocol family' do + @client.local_address.pfamily.should == Socket::PF_UNIX + end end it 'uses SOCK_STREAM as the socket type' do @client.local_address.socktype.should == Socket::SOCK_STREAM end - it 'uses an empty socket path' do - @client.local_address.unix_path.should == '' + platform_is_not :aix do + it 'uses an empty socket path' do + @client.local_address.unix_path.should == '' + end end it 'uses 0 as the protocol' do -- cgit v1.2.3