X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/137ed653ea6b080d540f0740e280e22aa2d40e43..ddc7e79efcaf34882ebde1440a8697dd2b2d8436:/t/map.t?ds=inline 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"); }