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:
parent
89bfad17d5
commit
db8c8c0916
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user