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

skip non-IP interfaces

* spec/ruby/library/socket/socket/getifaddrs_spec.rb: VirtualBox host
  only adapter seems something different than ordinary interfaces.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-08-12 00:28:26 +00:00
parent c3b2546411
commit aa6c02a5a5

View file

@ -61,7 +61,7 @@ describe 'Socket.getifaddrs' do
end
end
platform_is_not :windows do
platform_is_not :windows do
describe 'the Socket::Ifaddr broadcast address' do
before do
@addrs = @ifaddrs.map(&:broadaddr).compact
@ -83,7 +83,7 @@ describe 'Socket.getifaddrs' do
describe 'the Socket::Ifaddr netmask address' do
before do
@addrs = @ifaddrs.map(&:netmask).compact
@addrs = @ifaddrs.map(&:netmask).compact.select(&:ip?)
end
it 'is an Addrinfo' do