summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-24 22:32:07 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-24 22:32:07 +0000
commit7710bdd120724e1edd6c00816fb124ee36b0f4e0 (patch)
tree9277923ded3f542e7ebb6dce4d6c976e18d57960
parent6277b924ea6b505985305169bcbf4ec5f1acecf4 (diff)
Add AIX guards
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--spec/ruby/library/socket/addrinfo/initialize_spec.rb6
-rw-r--r--spec/ruby/library/socket/socket/getifaddrs_spec.rb2
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/library/socket/addrinfo/initialize_spec.rb b/spec/ruby/library/socket/addrinfo/initialize_spec.rb
index f0f2168..460fc28 100644
--- a/spec/ruby/library/socket/addrinfo/initialize_spec.rb
+++ b/spec/ruby/library/socket/addrinfo/initialize_spec.rb
@@ -360,7 +360,7 @@ describe "Addrinfo#initialize" do
end
end
- platform_is_not :windows, :solaris do
+ platform_is_not :windows, :aix, :solaris do
(Socket.constants.grep(/^IPPROTO/) - valid).each do |type|
it "raises SocketError when using #{type}" do
value = Socket.const_get(type)
@@ -388,7 +388,7 @@ describe "Addrinfo#initialize" do
end
end
- platform_is_not :windows, :solaris do
+ platform_is_not :windows, :aix, :solaris do
(Socket.constants.grep(/^IPPROTO/) - valid).each do |type|
it "raises SocketError when using #{type}" do
value = Socket.const_get(type)
@@ -491,7 +491,7 @@ describe "Addrinfo#initialize" do
end
end
- platform_is_not :windows, :solaris do
+ platform_is_not :windows, :aix, :solaris do
(Socket.constants.grep(/^IPPROTO/) - valid).each do |type|
it "raises SocketError when using #{type}" do
value = Socket.const_get(type)
diff --git a/spec/ruby/library/socket/socket/getifaddrs_spec.rb b/spec/ruby/library/socket/socket/getifaddrs_spec.rb
index 11f0f9c..588a355 100644
--- a/spec/ruby/library/socket/socket/getifaddrs_spec.rb
+++ b/spec/ruby/library/socket/socket/getifaddrs_spec.rb
@@ -1,6 +1,6 @@
require_relative '../spec_helper'
-platform_is_not :"solaris2.10" do
+platform_is_not :aix, :"solaris2.10" do
describe 'Socket.getifaddrs' do
before do
@ifaddrs = Socket.getifaddrs