summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/ruby/library/socket/addrinfo/getaddrinfo_spec.rb8
-rw-r--r--spec/ruby/library/socket/addrinfo/marshal_dump_spec.rb6
-rw-r--r--spec/ruby/library/socket/ancillarydata/initialize_spec.rb6
-rw-r--r--spec/ruby/library/socket/ancillarydata/unix_rights_spec.rb8
4 files changed, 18 insertions, 10 deletions
diff --git a/spec/ruby/library/socket/addrinfo/getaddrinfo_spec.rb b/spec/ruby/library/socket/addrinfo/getaddrinfo_spec.rb
index cc45c13a5c..ae6d527ac8 100644
--- a/spec/ruby/library/socket/addrinfo/getaddrinfo_spec.rb
+++ b/spec/ruby/library/socket/addrinfo/getaddrinfo_spec.rb
@@ -75,10 +75,12 @@ describe 'Addrinfo.getaddrinfo' do
end
end
- it 'sets a custom socket protocol of the Addrinfo instances' do
- array = Addrinfo.getaddrinfo('localhost', 80, nil, nil, Socket::IPPROTO_UDP)
+ platform_is_not :'solaris2.10' do # i386-solaris
+ it 'sets a custom socket protocol of the Addrinfo instances' do
+ array = Addrinfo.getaddrinfo('localhost', 80, nil, nil, Socket::IPPROTO_UDP)
- array[0].protocol.should == Socket::IPPROTO_UDP
+ array[0].protocol.should == Socket::IPPROTO_UDP
+ end
end
platform_is_not :solaris do
diff --git a/spec/ruby/library/socket/addrinfo/marshal_dump_spec.rb b/spec/ruby/library/socket/addrinfo/marshal_dump_spec.rb
index 2d69a33b53..c4220a6f3e 100644
--- a/spec/ruby/library/socket/addrinfo/marshal_dump_spec.rb
+++ b/spec/ruby/library/socket/addrinfo/marshal_dump_spec.rb
@@ -32,8 +32,10 @@ describe 'Addrinfo#marshal_dump' do
@array[3].should == 'SOCK_STREAM'
end
- it 'includes the protocol as the 5th value' do
- @array[4].should == 'IPPROTO_TCP'
+ platform_is_not :'solaris2.10' do # i386-solaris
+ it 'includes the protocol as the 5th value' do
+ @array[4].should == 'IPPROTO_TCP'
+ end
end
it 'includes the canonical name as the 6th value' do
diff --git a/spec/ruby/library/socket/ancillarydata/initialize_spec.rb b/spec/ruby/library/socket/ancillarydata/initialize_spec.rb
index 659a29e24a..d199074a65 100644
--- a/spec/ruby/library/socket/ancillarydata/initialize_spec.rb
+++ b/spec/ruby/library/socket/ancillarydata/initialize_spec.rb
@@ -106,8 +106,10 @@ with_feature :ancillary_data do
Socket::AncillaryData.new(:INET, :SOCKET, :RIGHTS, '').type.should == Socket::SCM_RIGHTS
end
- it 'sets the type to SCM_TIMESTAMP when using :TIMESTAMP as the type argument' do
- Socket::AncillaryData.new(:INET, :SOCKET, :TIMESTAMP, '').type.should == Socket::SCM_TIMESTAMP
+ platform_is_not :"solaris2.10" do
+ it 'sets the type to SCM_TIMESTAMP when using :TIMESTAMP as the type argument' do
+ Socket::AncillaryData.new(:INET, :SOCKET, :TIMESTAMP, '').type.should == Socket::SCM_TIMESTAMP
+ end
end
it 'raises TypeError when using a numeric string as the type argument' do
diff --git a/spec/ruby/library/socket/ancillarydata/unix_rights_spec.rb b/spec/ruby/library/socket/ancillarydata/unix_rights_spec.rb
index 0bbef4c08d..28eb116fca 100644
--- a/spec/ruby/library/socket/ancillarydata/unix_rights_spec.rb
+++ b/spec/ruby/library/socket/ancillarydata/unix_rights_spec.rb
@@ -50,10 +50,12 @@ with_feature :ancillary_data do
lambda { data.unix_rights }.should raise_error(TypeError)
end
- it 'raises TypeError when the type is not SCM_RIGHTS' do
- data = Socket::AncillaryData.new(:INET, :SOCKET, :TIMESTAMP, '')
+ platform_is_not :"solaris2.10" do
+ it 'raises TypeError when the type is not SCM_RIGHTS' do
+ data = Socket::AncillaryData.new(:INET, :SOCKET, :TIMESTAMP, '')
- lambda { data.unix_rights }.should raise_error(TypeError)
+ lambda { data.unix_rights }.should raise_error(TypeError)
+ end
end
end
end