Subject: | Bugs in test suite for Perl 5.6.1 |
The following tests fail on Perl 5.6.1:
t/99dbfilestore.t
t/99file.t
t/99filelock.t
t/99filestore.t
t/99flex.t
t/99md5gen.t
t/99moduniqgen.t
t/99nulllock.t
t/99semaphore.t
t/99storable.t
t/99uue.t
The failures are the inability to find the files which 'make' copies into
the 'blib/lib' directory, e.g.:
t/99dbfilestore....NOK 1# Failed test (t/99dbfilestore.t at line 33)
# Tried to use 'Apache::Session::Store::DB_File'.
# Error: Can't locate Apache/Session/Store/DB_File.pm in @INC (@INC contains: blib/arch blib/lib /usr/perl5/5.6.1/lib/sun4-solaris-64int /usr/perl5/5.6.1/lib /usr/perl5/site_perl/5.6.1/sun4-solaris-64int /usr/perl5/site_perl/5.6.1 /usr/perl5/site_perl /usr/perl5/vendor_perl/5.6.1/sun4-solaris-64int /usr/perl5/vendor_perl/5.6.1 /usr/perl5/vendor_perl .) at (eval 3) line 2.
# BEGIN failed--compilation aborted at t/99dbfilestore.t line 33.
Note that @INC includes 'blib/arch' and 'blib/lib' - which are *not* fully
qualified paths. This means to be a Perl 5.6 feature.
Unfortunately, the technique of
chdir($tempdir);
use_ok($package);
blows up, because 'blib/lib' isn't a sub-directory of $tempdir.
I suggest moving the "use_ok()" calls to before the "chdir()" call.
Message body not shown because it is not plain text.