mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
skip examples failing on solaris
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1961c786aa
commit
250bf32f97
4 changed files with 18 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue