]> sipb.mit.edu Git - ikiwiki.git/blobdiff - t/map.t
de-emphasize contributions to Joey; ikiwiki has more developers than just me. Donatio...
[ikiwiki.git] / t / map.t
diff --git a/t/map.t b/t/map.t
index 7f3df61f7c9068f8ea28aeac6d929f685530ba4a..5d4713d6fc9604d91018280c253911082d75c212 100755 (executable)
--- 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"); }