]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - t/map.t
(no commit message)
[git.ikiwiki.info.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"); }