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:
parent
89bfad17d5
commit
db8c8c0916
1 changed files with 30 additions and 26 deletions
|
@ -274,6 +274,7 @@ describe "Addrinfo#initialize" do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
platform_is_not :android do
|
||||||
with_feature :sock_packet do
|
with_feature :sock_packet do
|
||||||
[:SOCK_SEQPACKET].each do |type|
|
[:SOCK_SEQPACKET].each do |type|
|
||||||
it "overwrites the socket type #{type}" do
|
it "overwrites the socket type #{type}" do
|
||||||
|
@ -286,6 +287,7 @@ describe "Addrinfo#initialize" do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
it "raises SocketError when using SOCK_RDM" do
|
it "raises SocketError when using SOCK_RDM" do
|
||||||
sockaddr = ['AF_INET', 80, 'hostname', '127.0.0.1']
|
sockaddr = ['AF_INET', 80, 'hostname', '127.0.0.1']
|
||||||
|
@ -448,6 +450,7 @@ describe "Addrinfo#initialize" do
|
||||||
end
|
end
|
||||||
|
|
||||||
platform_is :linux do
|
platform_is :linux do
|
||||||
|
platform_is_not :android do
|
||||||
describe 'and the socket type is set to SOCK_SEQPACKET' do
|
describe 'and the socket type is set to SOCK_SEQPACKET' do
|
||||||
before do
|
before do
|
||||||
@socktype = Socket::SOCK_SEQPACKET
|
@socktype = Socket::SOCK_SEQPACKET
|
||||||
|
@ -474,6 +477,7 @@ describe "Addrinfo#initialize" do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
describe 'and the socket type is set to SOCK_STREAM' do
|
describe 'and the socket type is set to SOCK_STREAM' do
|
||||||
before do
|
before do
|
||||||
|
|
Loading…
Reference in a new issue