1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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:
nobu 2018-08-09 07:01:09 +00:00
parent d98e37ceb9
commit 2eea3288d6
4 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -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

View file

@ -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)

View file

@ -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