]> sipb.mit.edu Git - ikiwiki.git/blobdiff - t/map.t
prep release
[ikiwiki.git] / t / map.t
diff --git a/t/map.t b/t/map.t
index e764457d1c13b687b1632b3f5c5ea4c474f865d0..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"); }
@@ -229,6 +236,7 @@ check('alpha/1/i*',
                node('iv', []),
        ]);
 
+ok(! system("rm -rf t/tmp"));
 done_testing;
 
 1;