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 20180905
T103302Z.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:
parent
a140f157b9
commit
ebff0059f4
6 changed files with 60 additions and 48 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue