Subject: | fix tests |
This is perl, v5.8.8 built for i386-solaris
Test-WWW-Mechanize-1.12
SunOS yenfire 5.10 Generic_125101-04 i86pc i386 i86pc
The module tests currently spawn a server (based on HTTP::Server::Simple::CGI)
which is killed when a __DIE__ signal is received, normally only
when the invoking perl dies. However, as perlvar makes clear,
the __DIE__ signal is received when eval blocks die as well. The
new version (1.22) of WWW::Mechanize now calles HTTP::Message::decoded_content
which calls Encode.pm which has a eval block that require's Encode::ConfigLocal
which is usually not present, so the eval dies and the HTTP server
is killed as soon as the $mech object tries to do a 'get'. It's simple
to use a system variable, $^S to find out if the __DIE__ signal is being
called for an eval so we ignore that case with the patch attached.
There appear to be other bugs in the tests when used with WWW::Mechanize 1.22
but those will be covered in another report.
Subject: | twm-tests-patch |
Message body not shown because it is not plain text.