Add AIX guards
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6277b924ea
commit
7710bdd120
@ -360,7 +360,7 @@ describe "Addrinfo#initialize" do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
platform_is_not :windows, :solaris do
|
platform_is_not :windows, :aix, :solaris do
|
||||||
(Socket.constants.grep(/^IPPROTO/) - valid).each do |type|
|
(Socket.constants.grep(/^IPPROTO/) - valid).each do |type|
|
||||||
it "raises SocketError when using #{type}" do
|
it "raises SocketError when using #{type}" do
|
||||||
value = Socket.const_get(type)
|
value = Socket.const_get(type)
|
||||||
@ -388,7 +388,7 @@ describe "Addrinfo#initialize" do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
platform_is_not :windows, :solaris do
|
platform_is_not :windows, :aix, :solaris do
|
||||||
(Socket.constants.grep(/^IPPROTO/) - valid).each do |type|
|
(Socket.constants.grep(/^IPPROTO/) - valid).each do |type|
|
||||||
it "raises SocketError when using #{type}" do
|
it "raises SocketError when using #{type}" do
|
||||||
value = Socket.const_get(type)
|
value = Socket.const_get(type)
|
||||||
@ -491,7 +491,7 @@ describe "Addrinfo#initialize" do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
platform_is_not :windows, :solaris do
|
platform_is_not :windows, :aix, :solaris do
|
||||||
(Socket.constants.grep(/^IPPROTO/) - valid).each do |type|
|
(Socket.constants.grep(/^IPPROTO/) - valid).each do |type|
|
||||||
it "raises SocketError when using #{type}" do
|
it "raises SocketError when using #{type}" do
|
||||||
value = Socket.const_get(type)
|
value = Socket.const_get(type)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
require_relative '../spec_helper'
|
require_relative '../spec_helper'
|
||||||
|
|
||||||
platform_is_not :"solaris2.10" do
|
platform_is_not :aix, :"solaris2.10" do
|
||||||
describe 'Socket.getifaddrs' do
|
describe 'Socket.getifaddrs' do
|
||||||
before do
|
before do
|
||||||
@ifaddrs = Socket.getifaddrs
|
@ifaddrs = Socket.getifaddrs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user