diff options
Diffstat (limited to 'spec/ruby/library/socket/ancillarydata/unix_rights_spec.rb')
-rw-r--r-- | spec/ruby/library/socket/ancillarydata/unix_rights_spec.rb | 8 |
1 files changed, 5 insertions, 3 deletions
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 |