X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/a417262d58c1b8240357e6e0a203e1f32c39205d..15250ee6bfdb66cd823fb856bda84e372647f61f:/t/map.t diff --git a/t/map.t b/t/map.t index 7f3df61f7..36210d808 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"); } @@ -229,7 +236,6 @@ check('alpha/1/i*', node('iv', []), ]); -ok(! system("rm -rf t/tmp")); done_testing; 1;