Skip Menu |

This queue is for tickets about the Apache-Session CPAN distribution.

Report information
The Basics
Id: 16539
Status: resolved
Priority: 0/
Queue: Apache-Session

People
Owner: Nobody in particular
Requestors: andrew.benham [...] thus.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.80
Fixed in: 1.82_02



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.
Download ZZZ
application/octet-stream 14.2k

Message body not shown because it is not plain text.

Date: Fri, 16 Dec 2005 13:40:20 +0000
From: Andrew Benham <andrew.benham [...] thus.net>
To: bug-Apache-Session [...] rt.cpan.org
Subject: Re: [cpan #16539] Bugs in test suite for Perl 5.6.1
RT-Send-Cc:

Message body is not shown because it is too large.

On Dec 16 07:25:00 2005, guest wrote: Show quoted text
> The following tests fail on Perl 5.6.1:
[skip] Show quoted text
> 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.
If you are still using Perl 5.6.1, can you try Apache::Session 1.82? Best is to install Test::Reporter. CPAN::Reporter is also required if you are using CPAN shell, bot CPANPLUS. -- Alexandr Ciornii, http://chorny.net
Subject: Re: [rt.cpan.org #16539] Bugs in test suite for Perl 5.6.1
Date: Tue, 06 Mar 2007 17:24:57 +0000
To: bug-Apache-Session [...] rt.cpan.org
From: Andrew Benham <andrew.benham [...] thus.net>
Alexandr Ciornii via RT wrote: Show quoted text
Show quoted text
> If you are still using Perl 5.6.1, can you try Apache::Session 1.82? > Best is to install Test::Reporter. CPAN::Reporter is also required if > you are using CPAN shell, bot CPANPLUS.
We'll be using Perl 5.6.1 as long as Solaris 9 ships with it and is supported. Apache::Session 1.82 is better than 1.80, just one problem: t/99flex...........ok 1/12Can't locate Apache/Session/Generate/MD5.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 9) line 3. # Looks like you planned 12 tests but only ran 1. # Looks like your test died just after 1. t/99flex...........dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 2-12 Failed 11/12 tests, 8.33% okay We've done a chdir(), and then try to use Apache::Session::Generate::MD5 but that isn't in @INC (there's no blib directory where we are now, because we're in the tempdir. There is a blib directory in '..', and that's where we need to look). Could fix with: my $origdir = getcwd; my $tempdir = tempdir( DIR => '.', CLEANUP => 1 ); chdir( $tempdir ); +symlink ("../blib", "blib"); -- Andrew Benham Demon@Thus andrew.benham@thus.net Finchley, London N3 2QQ, U.K. Tel: 020 8495 6343 Fax: 020 8495 6037
On Mar 06 12:25:29 2007, andrew.benham@thus.net wrote: Show quoted text
> > If you are still using Perl 5.6.1, can you try Apache::Session 1.82?
> > We'll be using Perl 5.6.1 as long as Solaris 9 ships with it and is > supported. > > Apache::Session 1.82 is better than 1.80, just one problem
99flex.t will be skipped on perls earlier than 5.8. Fixed in 1.82_01. P.S. You can run cpan smoking. That way module can be fixed even before you'll find that you need it. See CPAN::YACSmoke. -- Alexandr Ciornii, http://chorny.net