Subject: | t/cookies.t should bypass proxy |
All tests that instanciate a local HTTP server, such as t/cookies.t,
should bypass any HTTP proxy by using the noproxy option.
Currently t/cookies.t fails on my platform because I have
$ENV{http_proxy} defined and the proxy returns a 400 status code which
cookies.t does not handle to fail cleanly. And worse than failing, the
tests are blocked at the end of cookies.t (just after "Looks like you
failed 12 tests of 14.").
C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e"
"test_harness(0,
'blib\lib', 'blib\arch')" t\00-load.t t\add_header.t t\aliases.t
t\area_link.t t
\autocheck.t t\clone.t t\cookies.t t\credentials-api.t t\credentials.t
t\die.t t
\field.t t\find_frame.t t\find_image.t t\find_inputs.t
t\find_link-warnings.t t\
find_link.t t\find_link_id.t t\form-parsing.t t\frames.t t\image-new.t
t\image-p
arse.t t\link-base.t t\link-relative.t t\link.t t\new.t t\pod-coverage.t
t\pod.t
t\regex-error.t t\save_content.t t\select.t t\taint.t t\tick.t
t\upload.t t\war
n.t t\warnings.t t\local\back.t t\local\click.t t\local\click_button.t
t\local\f
ailure.t t\local\follow.t t\local\form.t t\local\get.t
t\local\overload.t t\loca
l\page_stack.t t\local\referer.t t\local\reload.t t\local\submit.t
t\live\encodi
ng.t t\live\wikipedia.t t\mech-dump\mech-dump.t
t\00-load.t .............. 1/2 # Testing WWW::Mechanize 1.54, with LWP
5.823, Pe
rl 5.010000, C:\STRAWB~1\perl\bin\perl.exe
t\00-load.t .............. ok
t\add_header.t ........... ok
t\aliases.t .............. ok
t\area_link.t ............ ok
t\autocheck.t ............ ok
t\clone.t ................ ok
t\cookies.t .............. 1/14
t\cookies.t .............. 2/14 # Failed test 'First fetch works'
# at t\cookies.t line 69.
# got: '503'
# 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: 'ERREURá: L'URL demandÚe n'a pu Ûtre chargÚe'
# expected: 'Home of Cookie #1'
Use of uninitialized value $version in numeric gt (>) at
C:/STRAWB~1/perl/site/l
ib/HTTP/Cookies.pm line 106, <DATA> line 16.
Use of uninitialized value $version in numeric ge (>=) at
C:/STRAWB~1/perl/site/
lib/HTTP/Cookies.pm line 114, <DATA> line 16.
Use of uninitialized value $val in pattern match (m//) at
C:/STRAWB~1/perl/site/
lib/HTTP/Cookies.pm line 123, <DATA> line 16.
Use of uninitialized value $val in concatenation (.) or string at
C:/STRAWB~1/pe
rl/site/lib/HTTP/Cookies.pm line 129, <DATA> line 16.
Use of uninitialized value $version in numeric ge (>=) at
C:/STRAWB~1/perl/site/
lib/HTTP/Cookies.pm line 130, <DATA> line 16.
# 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: 'ERREURá: L'URL demandÚe n'a pu Ûtre chargÚe'
# 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: 'ERREURá: L'URL demandÚe n'a pu Ûtre chargÚe'
# expected: 'Home of Cookie #1'
Use of uninitialized value $version in numeric gt (>) at
C:/STRAWB~1/perl/site/l
ib/HTTP/Cookies.pm line 106, <DATA> line 16.
Use of uninitialized value $version in numeric ge (>=) at
C:/STRAWB~1/perl/site/
lib/HTTP/Cookies.pm line 114, <DATA> line 16.
Use of uninitialized value $val in pattern match (m//) at
C:/STRAWB~1/perl/site/
lib/HTTP/Cookies.pm line 123, <DATA> line 16.
Use of uninitialized value $val in concatenation (.) or string at
C:/STRAWB~1/pe
rl/site/lib/HTTP/Cookies.pm line 129, <DATA> line 16.
Use of uninitialized value $version in numeric ge (>=) at
C:/STRAWB~1/perl/site/
lib/HTTP/Cookies.pm line 130, <DATA> line 16.
# Failed test 'Cookie did not change...'
# at t\cookies.t line 101.
# got: undef
# expected: 'Cookie #2'
# Failed test 'On the proper 3rd page'
# at t\cookies.t line 102.
# got: 'ERREURá: L'URL demandÚe n'a pu Ûtre chargÚe'
# expected: 'No cookies sent'
Use of uninitialized value $version in numeric gt (>) at
C:/STRAWB~1/perl/site/l
ib/HTTP/Cookies.pm line 106, <DATA> line 16.
Use of uninitialized value $version in numeric ge (>=) at
C:/STRAWB~1/perl/site/
lib/HTTP/Cookies.pm line 114, <DATA> line 16.
Use of uninitialized value $val in pattern match (m//) at
C:/STRAWB~1/perl/site/
lib/HTTP/Cookies.pm line 123, <DATA> line 16.
Use of uninitialized value $val in concatenation (.) or string at
C:/STRAWB~1/pe
rl/site/lib/HTTP/Cookies.pm line 129, <DATA> line 16.
Use of uninitialized value $version in numeric ge (>=) at
C:/STRAWB~1/perl/site/
lib/HTTP/Cookies.pm line 130, <DATA> line 16.
# Failed test 'Got the third cookie'
# at t\cookies.t line 110.
# got: undef
# expected: 'Cookie #3'
# Failed test 'Title is correct'
# at t\cookies.t line 111.
# got: 'ERREURá: L'URL demandÚe n'a pu Ûtre chargÚe'
# expected: 'Home of Cookie #3'
# Looks like you failed 12 tests of 14.