]> git.decadent.org.uk Git - maypole.git/blob - debian/patches/102_fix-apache_mvc-test.diff
db9a4faae8d3ed1155a791495c4ab438a4741182
[maypole.git] / debian / patches / 102_fix-apache_mvc-test.diff
1 --- maypole.orig/t/apache_mvc.t
2 +++ maypole/t/apache_mvc.t
3 @@ -2,10 +2,13 @@
4  use strict;
5  use Test::More;
6  BEGIN {
7 -    if (eval { require Apache::Request }) {
8 +    if (eval { require Apache2::RequestRec }) {
9 +       $ENV{MOD_PERL_API_VERSION} = 2;
10 +        plan tests => 3;
11 +    } elsif (eval { require Apache::Request }) {
12          plan tests => 3;
13      } else {
14 -        Test::More->import(skip_all =>"Apache::Request is not installed: $@");
15 +        Test::More->import(skip_all =>"Neither Apache2::RequestRec nor Apache::Request is installed: $@");
16      }
17  }
18