]> git.decadent.org.uk Git - maypole.git/blobdiff - t/apache_mvc.t
only skip two tests if captureoutput is missing
[maypole.git] / t / apache_mvc.t
index e6561289fa74ef370b18ed37e0b5de724d24d00d..9a3eafdb09b71ee081f0d14d3ac1940b13fd4aca 100644 (file)
@@ -1,7 +1,10 @@
 #!/usr/bin/perl -w
 use strict;
-use Test::More tests => 10;
-
+use Test::More;
+BEGIN { if (eval { require mod_perl }) { 
+            plan tests => 2;
+        } else { Test::More->import(skip_all =>"mod_perl is not installed: $@") }
+      }
 require_ok('Apache::MVC');
 ok($Apache::MVC::VERSION, 'defines $VERSION');
 # defines $VERSION