1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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:
eregon 2018-08-18 19:37:12 +00:00
parent 10f642ba02
commit 08bca6b611

View file

@ -28,6 +28,7 @@ describe :socket_pack_sockaddr_in, shared: true do
end
end
platform_is_not :solaris do
describe 'using an IPv6 address' do
it 'returns a String of 28 bytes' do
str = Socket.public_send(@method, 80, '::1')
@ -38,6 +39,18 @@ describe :socket_pack_sockaddr_in, shared: true do
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
with_feature :unix_socket do
it 'should be idempotent' do