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:
parent
10f642ba02
commit
08bca6b611
1 changed files with 18 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue