summaryrefslogtreecommitdiff
path: root/spec/ruby/library/socket/ancillarydata
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-16 10:50:53 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-16 10:50:53 +0000
commit250bf32f971c0a746ff6c1ad9b37089e13087b46 (patch)
tree2926bf28ef7f355df01d340e079abeb814de84c6 /spec/ruby/library/socket/ancillarydata
parent1961c786aab243b3eb60e7238224e87975d88056 (diff)
skip examples failing on solaris
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/library/socket/ancillarydata')
-rw-r--r--spec/ruby/library/socket/ancillarydata/initialize_spec.rb6
-rw-r--r--spec/ruby/library/socket/ancillarydata/unix_rights_spec.rb8
2 files changed, 9 insertions, 5 deletions
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