Skip to content

Commit 050236a

Browse files
mameclaude
authored andcommitted
Skip Addrinfo specs unsupported by musl as on Android
musl getaddrinfo does not support SOCK_SEQPACKET and getnameinfo does not support AF_UNIX. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 8809dba commit 050236a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎library/socket/addrinfo/getnameinfo_spec.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
end
2222

2323
platform_is :linux do
24-
platform_is_not :android do
24+
platform_is_not :android, :musl do
2525
describe 'using a UNIX Addrinfo' do
2626
before do
2727
@addr = Addrinfo.unix('cats')

‎library/socket/addrinfo/initialize_spec.rb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@
274274
end
275275
end
276276

277-
platform_is_not :android do
277+
platform_is_not :android, :musl do
278278
with_feature :sock_packet do
279279
[:SOCK_SEQPACKET].each do |type|
280280
it "overwrites the socket type #{type}" do
@@ -450,7 +450,7 @@
450450
end
451451

452452
platform_is :linux do
453-
platform_is_not :android do
453+
platform_is_not :android, :musl do
454454
describe 'and the socket type is set to SOCK_SEQPACKET' do
455455
before do
456456
@socktype = Socket::SOCK_SEQPACKET

0 commit comments

Comments
 (0)