t/local/back.t fails during 404 test if your resolver returns an address for 'localhost' that's not 127.0.0.1
Like:
MacBook:~$ grep new xx.pl
my $server = HTTP::Daemon->new(LocalAddr => 'localhost') or die;
MacBook:~$ ./xx.pl
$VAR1 = 'http://o2wirelessbox.lan:52303/';
It's irrelevant if localhost is in /etc/hosts - Lion looks at DNS _then_ /etc/hosts. Annoyingly it appears you cannot change the resolution order on Lion either! This may even only occur with certain resolvers.
I hacked up a patch to the test just to see if I could get it to work ok on my laptop, and it does. That's attached. It may not be the most elegant solution ;)
m...@probably.co.uk reported on Dec 19, 2011
Details
Imported from Google Code issue 227 via archive