diff --git a/test/socket/test_socket.rb b/test/socket/test_socket.rb index d1f393b5b3..0406e2205b 100644 --- a/test/socket/test_socket.rb +++ b/test/socket/test_socket.rb @@ -334,7 +334,7 @@ class TestSocket < Test::Unit::TestCase end when /darwin/ if ai.ipv6? - ifconfig ||= `ifconfig` + ifconfig ||= `/sbin/ifconfig` next true if ifconfig.scan(/^(\w+):(.*(?:\n\t.*)*)/).find do|ifname, value| value.include?(ai.ip_address) && value.include?('POINTOPOINT') end