perl-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher H. Laco" <cl...@chrislaco.com>
Subject Apache::TestMM->test dies after upgrade to 1.27
Date Sat, 22 Oct 2005 00:13:13 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

After upgrading Apache-Test to 1.27, my Makefile.PL dies with this error:

> Can't use string ("Apache::TestMM") as a HASH ref while "strict refs" in use at /usr/local/lib/perl/5.8.7/Apache/TestMM.pm
line 56.

It's not the most standard MAkefile in the world, but here's the MY::test:


> package MY;
> sub test {
>     my $self = shift;
> 
>     eval 'use Apache::Test 1.16';
>     if (!$@) {
>         require Apache::TestMM;
>         Apache::TestMM->import(qw(test clean));
> 
>         my @defines;
>         eval 'use Apache::Template';
>         if (!$@) {
>             push @defines, 'TT2';
>         };
> 
>         ## for whatever reason, use AxKit causes issues
>         ## use-ing A::A::Exception doesn't
>         eval 'use Apache::AxKit::Exception';
>         if (!$@) {
>             push @defines, 'AXKIT';
>         };
> 
>         push(@ARGV, '-defines', join(' ', @defines)) if scalar @defines;
>         Apache::TestMM::filter_args();
>         Apache::TestMM::generate_script('t/TEST');
>         Apache::TestMM::generate_script('t/SMOKE');
>         my $at = Apache::TestMM->test;
BOOM!
>         my $tests = $self->{'test'} ? $self->{'test'}->{'TESTS'} : '';
>         if ($tests && Apache::Test->VERSION <= 1.26) {
>             $at =~ s/TEST_FILES\s+=/TEST_FILES = $tests\n/;
>         };
> 
>         return $at;
>     } else {
>         return $self->SUPER::test;
>     };
> };
> 
> 1;

Anyone have any ideas?
The full Makefile.PL can be sound here:
http://search.cpan.org/src/CLACO/Handel-0.26/Makefile.PL

- -=Chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDWYQY+66dLHM50ssRArS0AKCbQq2cd/+UhaekPX2rGlrciOOvJQCfXfdZ
BHXYnCeJxIFcoAklqY5Sq2Q=
=IyNS
-----END PGP SIGNATURE-----

Mime
View raw message