ruby-changes:63334
From: Yusuke <ko1@a...>
Date: Mon, 12 Oct 2020 23:37:16 +0900 (JST)
Subject: [ruby-changes:63334] 0b1b0f134e (master): spec/ruby/library/socket/socket/listen_spec.rb: Allow both EACCES and EOPNOSUPP
https://git.ruby-lang.org/ruby.git/commit/?id=0b1b0f134e From 0b1b0f134e8da3c37f9631e7247314804465367f Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Mon, 12 Oct 2020 23:36:12 +0900 Subject: spec/ruby/library/socket/socket/listen_spec.rb: Allow both EACCES and EOPNOSUPP on Android diff --git a/spec/ruby/library/socket/socket/listen_spec.rb b/spec/ruby/library/socket/socket/listen_spec.rb index 986d9f8..6598e25 100644 --- a/spec/ruby/library/socket/socket/listen_spec.rb +++ b/spec/ruby/library/socket/socket/listen_spec.rb @@ -41,8 +41,8 @@ describe 'Socket#listen' do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/socket/socket/listen_spec.rb#L41 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/