X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/12ca01fd5c67c158e916c9068453271235a2a0e7..5304b20c55fd2db8f4f414f1fc0c017006e0ee7c:/t/map.t?ds=inline diff --git a/t/map.t b/t/map.t index e764457d1..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"); } @@ -229,6 +236,7 @@ check('alpha/1/i*', node('iv', []), ]); +ok(! system("rm -rf t/tmp")); done_testing; 1;