Subject: | apache_mvc test doesn't work with mod_perl & libapr 2 |
Date: | Sun, 14 Oct 2007 17:32:13 +0100 |
To: | bug-Maypole [...] rt.cpan.org |
From: | Ben Hutchings <ben [...] decadent.org.uk> |
The apache_mvc test doesn't work with mod_perl & libapr 2. Suggested
fix, from the Debian package:
--- maypole.orig/t/apache_mvc.t
+++ maypole/t/apache_mvc.t
@@ -2,10 +2,13 @@
use strict;
use Test::More;
BEGIN {
- if (eval { require Apache::Request }) {
+ if (eval { require Apache2::RequestRec }) {
+ $ENV{MOD_PERL_API_VERSION} = 2;
+ plan tests => 3;
+ } elsif (eval { require Apache::Request }) {
plan tests => 3;
} else {
- Test::More->import(skip_all =>"Apache::Request is not installed: $@");
+ Test::More->import(skip_all =>"Neither Apache2::RequestRec nor Apache::Request is installed: $@");
}
}
-- END --
--
Ben Hutchings
Lowery's Law:
If it jams, force it. If it breaks, it needed replacing anyway.
Message body not shown because it is not plain text.