Adapt pack_sockaddr_in specs for Solaris
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
10f642ba02
commit
08bca6b611
@ -28,6 +28,7 @@ describe :socket_pack_sockaddr_in, shared: true do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
platform_is_not :solaris do
|
||||||
describe 'using an IPv6 address' do
|
describe 'using an IPv6 address' do
|
||||||
it 'returns a String of 28 bytes' do
|
it 'returns a String of 28 bytes' do
|
||||||
str = Socket.public_send(@method, 80, '::1')
|
str = Socket.public_send(@method, 80, '::1')
|
||||||
@ -38,6 +39,18 @@ describe :socket_pack_sockaddr_in, shared: true do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
platform_is :solaris do
|
||||||
|
describe 'using an IPv6 address' do
|
||||||
|
it 'returns a String of 32 bytes' do
|
||||||
|
str = Socket.public_send(@method, 80, '::1')
|
||||||
|
|
||||||
|
str.should be_an_instance_of(String)
|
||||||
|
str.bytesize.should == 32
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
describe :socket_pack_sockaddr_un, shared: true do
|
describe :socket_pack_sockaddr_un, shared: true do
|
||||||
with_feature :unix_socket do
|
with_feature :unix_socket do
|
||||||
it 'should be idempotent' do
|
it 'should be idempotent' do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user