зеркало из https://github.com/github/ruby.git
apply r64239 to macOS too
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
d98e37ceb9
Коммит
2eea3288d6
|
@ -156,7 +156,7 @@ describe 'BasicSocket#recvmsg_nonblock' do
|
|||
|
||||
describe 'the returned Array' do
|
||||
before do
|
||||
platform_is(:freebsd) { IO.select([@socket]) }
|
||||
platform_is(:darwin, :freebsd) { IO.select([@socket]) }
|
||||
@array = @socket.recvmsg_nonblock
|
||||
end
|
||||
|
||||
|
|
|
@ -89,10 +89,10 @@ describe "Socket::Constants" do
|
|||
|
||||
platform_is_not :windows do
|
||||
it 'defines SCM options' do
|
||||
platform_is :freebsd do
|
||||
platform_is :darwin, :freebsd do
|
||||
Socket::Constants.should have_constant('SCM_CREDS')
|
||||
end
|
||||
platform_is_not :freebsd do
|
||||
platform_is_not :darwin, :freebsd do
|
||||
Socket::Constants.should have_constant('SCM_CREDENTIALS')
|
||||
end
|
||||
end
|
||||
|
|
|
@ -37,7 +37,7 @@ describe 'Socket#recvfrom_nonblock' do
|
|||
before do
|
||||
@client.write('hello')
|
||||
|
||||
platform_is(:freebsd) { IO.select([@server]) }
|
||||
platform_is(:darwin, :freebsd) { IO.select([@server]) }
|
||||
end
|
||||
|
||||
platform_is_not :windows do
|
||||
|
@ -54,7 +54,7 @@ describe 'Socket#recvfrom_nonblock' do
|
|||
5.times do
|
||||
@client.write('hello')
|
||||
|
||||
platform_is(:freebsd) { IO.select([@server]) }
|
||||
platform_is(:darwin, :freebsd) { IO.select([@server]) }
|
||||
|
||||
msg, _ = @server.recvfrom_nonblock(5)
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ describe 'UDPSocket#recvfrom_nonblock' do
|
|||
before do
|
||||
@client.write('hello')
|
||||
|
||||
platform_is(:freebsd) { IO.select([@server]) }
|
||||
platform_is(:darwin, :freebsd) { IO.select([@server]) }
|
||||
end
|
||||
|
||||
it 'returns an Array containing the data and an Array' do
|
||||
|
|
Загрузка…
Ссылка в новой задаче