ruby-changes:52025
From: nobu <ko1@a...>
Date: Thu, 9 Aug 2018 16:01:14 +0900 (JST)
Subject: [ruby-changes:52025] nobu:r64241 (trunk): apply r64239 to macOS too
nobu 2018-08-09 16:01:09 +0900 (Thu, 09 Aug 2018) New Revision: 64241 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64241 Log: apply r64239 to macOS too Modified files: trunk/spec/ruby/library/socket/basicsocket/recvmsg_nonblock_spec.rb trunk/spec/ruby/library/socket/constants/constants_spec.rb trunk/spec/ruby/library/socket/socket/recvfrom_nonblock_spec.rb trunk/spec/ruby/library/socket/udpsocket/recvfrom_nonblock_spec.rb Index: spec/ruby/library/socket/udpsocket/recvfrom_nonblock_spec.rb =================================================================== --- spec/ruby/library/socket/udpsocket/recvfrom_nonblock_spec.rb (revision 64240) +++ spec/ruby/library/socket/udpsocket/recvfrom_nonblock_spec.rb (revision 64241) @@ -41,7 +41,7 @@ describe 'UDPSocket#recvfrom_nonblock' d https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/socket/udpsocket/recvfrom_nonblock_spec.rb#L41 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 Index: spec/ruby/library/socket/socket/recvfrom_nonblock_spec.rb =================================================================== --- spec/ruby/library/socket/socket/recvfrom_nonblock_spec.rb (revision 64240) +++ spec/ruby/library/socket/socket/recvfrom_nonblock_spec.rb (revision 64241) @@ -37,7 +37,7 @@ describe 'Socket#recvfrom_nonblock' do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/socket/socket/recvfrom_nonblock_spec.rb#L37 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 https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/socket/socket/recvfrom_nonblock_spec.rb#L54 5.times do @client.write('hello') - platform_is(:freebsd) { IO.select([@server]) } + platform_is(:darwin, :freebsd) { IO.select([@server]) } msg, _ = @server.recvfrom_nonblock(5) Index: spec/ruby/library/socket/basicsocket/recvmsg_nonblock_spec.rb =================================================================== --- spec/ruby/library/socket/basicsocket/recvmsg_nonblock_spec.rb (revision 64240) +++ spec/ruby/library/socket/basicsocket/recvmsg_nonblock_spec.rb (revision 64241) @@ -156,7 +156,7 @@ describe 'BasicSocket#recvmsg_nonblock' https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/socket/basicsocket/recvmsg_nonblock_spec.rb#L156 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 Index: spec/ruby/library/socket/constants/constants_spec.rb =================================================================== --- spec/ruby/library/socket/constants/constants_spec.rb (revision 64240) +++ spec/ruby/library/socket/constants/constants_spec.rb (revision 64241) @@ -89,10 +89,10 @@ describe "Socket::Constants" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/socket/constants/constants_spec.rb#L89 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/