mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@9be7c7e
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
aeeaadaad0
commit
b53cf149ad
246 changed files with 9108 additions and 548 deletions
16
spec/ruby/library/socket/spec_helper.rb
Normal file
16
spec/ruby/library/socket/spec_helper.rb
Normal file
|
@ -0,0 +1,16 @@
|
|||
require_relative '../../spec_helper'
|
||||
require 'socket'
|
||||
|
||||
if %w[rbx truffleruby].include?(RUBY_ENGINE)
|
||||
MSpec.enable_feature :pure_ruby_addrinfo
|
||||
end
|
||||
|
||||
MSpec.enable_feature :sock_packet if Socket.const_defined?(:SOCK_PACKET)
|
||||
MSpec.enable_feature :unix_socket unless PlatformGuard.windows?
|
||||
MSpec.enable_feature :udp_cork if Socket.const_defined?(:UDP_CORK)
|
||||
MSpec.enable_feature :tcp_cork if Socket.const_defined?(:TCP_CORK)
|
||||
MSpec.enable_feature :ipv6_pktinfo if Socket.const_defined?(:IPV6_PKTINFO)
|
||||
MSpec.enable_feature :ip_mtu if Socket.const_defined?(:IP_MTU)
|
||||
MSpec.enable_feature :ipv6_nexthop if Socket.const_defined?(:IPV6_NEXTHOP)
|
||||
MSpec.enable_feature :tcp_info if Socket.const_defined?(:TCP_INFO)
|
||||
MSpec.enable_feature :ancillary_data if Socket.const_defined?(:AncillaryData)
|
Loading…
Add table
Add a link
Reference in a new issue