aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2013-05-09 10:46:25 -0400
committerJoey Hess <joey@kitenet.net>2013-05-09 10:46:25 -0400
commit5121198cb9abcdec0a974f53b0be0d12814250b7 (patch)
tree1f6e822f4a5e79b49e58e819ac28a141e00b44e4
parent792d3dd6f087e9abcdaf4e3f09e2e64f0186df25 (diff)
downloadikiwiki-5121198cb9abcdec0a974f53b0be0d12814250b7.tar
ikiwiki-5121198cb9abcdec0a974f53b0be0d12814250b7.tar.gz
avoid running test if xml::twig is not installed
-rwxr-xr-xt/map.t9
1 files changed, 8 insertions, 1 deletions
diff --git a/t/map.t b/t/map.t
index 7f3df61f7..5d4713d6f 100755
--- a/t/map.t
+++ b/t/map.t
@@ -3,9 +3,16 @@ package IkiWiki;
use warnings;
use strict;
-use XML::Twig;
use Test::More;
+BEGIN {
+ unless (eval { require XML::Twig }) {
+ eval q{
+ use Test::More skip_all => "XML::Twig is not available"
+ }
+ }
+}
+
BEGIN { use_ok("IkiWiki"); }
BEGIN { use_ok("IkiWiki::Render"); }
BEGIN { use_ok("IkiWiki::Plugin::map"); }