From 2eea3288d6724e44ef7a4566eaa8dc932d1696da Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 9 Aug 2018 07:01:09 +0000 Subject: [PATCH] apply r64239 to macOS too git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- spec/ruby/library/socket/basicsocket/recvmsg_nonblock_spec.rb | 2 +- spec/ruby/library/socket/constants/constants_spec.rb | 4 ++-- spec/ruby/library/socket/socket/recvfrom_nonblock_spec.rb | 4 ++-- spec/ruby/library/socket/udpsocket/recvfrom_nonblock_spec.rb | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/ruby/library/socket/basicsocket/recvmsg_nonblock_spec.rb b/spec/ruby/library/socket/basicsocket/recvmsg_nonblock_spec.rb index 30f74a2164..c382268ca4 100644 --- a/spec/ruby/library/socket/basicsocket/recvmsg_nonblock_spec.rb +++ b/spec/ruby/library/socket/basicsocket/recvmsg_nonblock_spec.rb @@ -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 diff --git a/spec/ruby/library/socket/constants/constants_spec.rb b/spec/ruby/library/socket/constants/constants_spec.rb index 2a218c7c5d..81ba4ed17b 100644 --- a/spec/ruby/library/socket/constants/constants_spec.rb +++ b/spec/ruby/library/socket/constants/constants_spec.rb @@ -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 diff --git a/spec/ruby/library/socket/socket/recvfrom_nonblock_spec.rb b/spec/ruby/library/socket/socket/recvfrom_nonblock_spec.rb index 5437e9b0bb..c1239ae637 100644 --- a/spec/ruby/library/socket/socket/recvfrom_nonblock_spec.rb +++ b/spec/ruby/library/socket/socket/recvfrom_nonblock_spec.rb @@ -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) diff --git a/spec/ruby/library/socket/udpsocket/recvfrom_nonblock_spec.rb b/spec/ruby/library/socket/udpsocket/recvfrom_nonblock_spec.rb index 8c9d598676..015109a052 100644 --- a/spec/ruby/library/socket/udpsocket/recvfrom_nonblock_spec.rb +++ b/spec/ruby/library/socket/udpsocket/recvfrom_nonblock_spec.rb @@ -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