1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add platform guards for AIX

* Most of these seem OS bugs.
* See 20180905T103302Z.fail.html.gz

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eregon 2018-09-05 20:39:19 +00:00
parent a140f157b9
commit ebff0059f4
6 changed files with 60 additions and 48 deletions

View file

@ -95,21 +95,23 @@ describe 'Socket#connect_address' do
end
with_feature :unix_socket do
describe 'using an unbound UNIX socket' do
before do
@path = SocketSpecs.socket_path
@server = UNIXServer.new(@path)
@client = UNIXSocket.new(@path)
end
platform_is_not :aix do
describe 'using an unbound UNIX socket' do
before do
@path = SocketSpecs.socket_path
@server = UNIXServer.new(@path)
@client = UNIXSocket.new(@path)
end
after do
@client.close
@server.close
rm_r(@path)
end
after do
@client.close
@server.close
rm_r(@path)
end
it 'raises SocketError' do
lambda { @client.connect_address }.should raise_error(SocketError)
it 'raises SocketError' do
lambda { @client.connect_address }.should raise_error(SocketError)
end
end
end