We have a proxy for outside connections and when installing
WWW::Mechanize via CPAN the cookie tests fail, since they are not
using the proxy:
t/cookies................2/14
# Failed test 'First fetch works'
# at t/cookies.t line 69.
# got: '500'
# expected: '200'
# Failed test 'First cookie matches'
# at t/cookies.t line 73.
# got: undef
# expected: 'Cookie #1'
# Failed test 'Right title'
# at t/cookies.t line 74.
# got: undef
# expected: 'Home of Cookie #1'
Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/
site_perl/5.8.5/HTTP/Cookies.pm line 106, <DATA> line 16.
Use of uninitialized value in numeric ge (>=) at /usr/lib/perl5/
site_perl/5.8.5/HTTP/Cookies.pm line 114, <DATA> line 16.
Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/
site_perl/5.8.5/HTTP/Cookies.pm line 123, <DATA> line 16.
Use of uninitialized value in concatenation (.) or string at /usr/lib/
perl5/site_perl/5.8.5/HTTP/Cookies.pm line 129, <DATA> line 16.
Use of uninitialized value in numeric ge (>=) at /usr/lib/perl5/
site_perl/5.8.5/HTTP/Cookies.pm line 130, <DATA> line 16.
t/cookies................5/14
# Failed test 'Second fetch works'
# at t/cookies.t line 79.
# got: '503'
# expected: '200'
# Failed test 'Second cookie matches'
# at t/cookies.t line 83.
# got: undef
# expected: 'Cookie #2'
# Failed test 'Right title'
# at t/cookies.t line 84.
# got: 'Network Error'
# expected: 'Home of Cookie #2'
# Failed test 'Cookie did not change...'
# at t/cookies.t line 92.
# got: undef
# expected: 'Cookie #2'
# Failed test '... but back to the first page title'
# at t/cookies.t line 93.
# got: undef
# expected: 'Home of Cookie #1'
Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/
site_perl/5.8.5/HTTP/Cookies.pm line 106, <DATA> line 16.
Use of uninitialized value in numeric ge (>=) at /usr/lib/perl5/
site_perl/5.8.5/HTTP/Cookies.pm line 114, <DATA> line 16.
Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/
site_perl/5.8.5/HTTP/Cookies.pm line 123, <DATA> line 16.
Use of uninitialized value in concatenation (.) or string at /usr/lib/
perl5/site_perl/5.8.5/HTTP/Cookies.pm line 129, <DATA> line 16.
Use of uninitialized value in numeric ge (>=) at /usr/lib/perl5/
site_perl/5.8.5/HTTP/Cookies.pm line 130, <DATA> line 16.
Maybe test for connectivity and skip if you can't talk to the outside
world?
Cheers,
--Ed