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

spec/ruby/library/socket/addrinfo: skip the specs that uses SOCK_SEQPACKET on Android

SOCK_SEQPACKET seems not to be supported on Android
This commit is contained in:
Yusuke Endoh 2020-02-13 23:10:03 +09:00
parent 89bfad17d5
commit db8c8c0916

View file

@ -274,6 +274,7 @@ describe "Addrinfo#initialize" do
end
end
platform_is_not :android do
with_feature :sock_packet do
[:SOCK_SEQPACKET].each do |type|
it "overwrites the socket type #{type}" do
@ -286,6 +287,7 @@ describe "Addrinfo#initialize" do
end
end
end
end
it "raises SocketError when using SOCK_RDM" do
sockaddr = ['AF_INET', 80, 'hostname', '127.0.0.1']
@ -448,6 +450,7 @@ describe "Addrinfo#initialize" do
end
platform_is :linux do
platform_is_not :android do
describe 'and the socket type is set to SOCK_SEQPACKET' do
before do
@socktype = Socket::SOCK_SEQPACKET
@ -474,6 +477,7 @@ describe "Addrinfo#initialize" do
end
end
end
end
describe 'and the socket type is set to SOCK_STREAM' do
before do