mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
spec/ruby/library/socket/socket/listen_spec.rb: Allow both EACCES and EOPNOSUPP
on Android
This commit is contained in:
parent
bf3b2a4374
commit
0b1b0f134e
1 changed files with 2 additions and 2 deletions
|
@ -41,8 +41,8 @@ describe 'Socket#listen' do
|
|||
end
|
||||
|
||||
platform_is :android do
|
||||
it 'raises Errno::EACCES' do
|
||||
-> { @server.listen(1) }.should raise_error(Errno::EACCES)
|
||||
it 'raises Errno::EOPNOTSUPP or Errno::EACCES' do
|
||||
-> { @server.listen(1) }.should raise_error(-> exc { Errno::EACCES === exc || Errno::EOPNOTSUPP === exc })
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue