Net::hostent fails make test if can't resolve localhost
authorDavid Cantrell <david@cantrell.org.uk>
Wed, 8 Apr 2009 12:49:14 +0000 (14:49 +0200)
committerDavid Mitchell <davem@iabyn.com>
Mon, 20 Apr 2009 00:46:20 +0000 (01:46 +0100)
commit82de21354b5f7295a602f241dbfdab4f69d400b3
tree6b368ef37ed74691d16dd171ab844fb504f12fd5
parentc25f14e7cd10c2e622c40044239b9c59bb7c392a
Net::hostent fails make test if can't resolve localhost

This happens on boxes which otherwise work Just Fine and whose resolvers
work Just Fine if they don't have /etc/hosts. This patch fixes the test
file by making it skip if localhost can't be resolved and /etc/hosts
doesn't exist.

Message-ID: <20090330205715.GA29690@bytemark.barnyard.co.uk>

(cherry picked from commit 932dfdf14c16835fc3ab6ba0cb0dab9254dfd017)
lib/Net/hostent.t