diff options
author | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-09-05 20:39:19 +0000 |
---|---|---|
committer | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-09-05 20:39:19 +0000 |
commit | ebff0059f4a45d02abb66a7f5ed2a4697136b940 (patch) | |
tree | b8eac1c25ef547f54350b86fee6b13967d860d7a /spec/ruby/library/socket/unixsocket/local_address_spec.rb | |
parent | a140f157b9ccac155197e8e4b08aea8965faa94c (diff) | |
download | ruby-ebff0059f4a45d02abb66a7f5ed2a4697136b940.tar.gz |
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
Diffstat (limited to 'spec/ruby/library/socket/unixsocket/local_address_spec.rb')
-rw-r--r-- | spec/ruby/library/socket/unixsocket/local_address_spec.rb | 20 |
1 files changed, 12 insertions, 8 deletions
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 |