diff options
author | Joey Hess <joey@kitenet.net> | 2013-05-09 10:46:25 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-05-09 10:46:25 -0400 |
commit | 5121198cb9abcdec0a974f53b0be0d12814250b7 (patch) | |
tree | 1f6e822f4a5e79b49e58e819ac28a141e00b44e4 | |
parent | 792d3dd6f087e9abcdaf4e3f09e2e64f0186df25 (diff) | |
download | ikiwiki-5121198cb9abcdec0a974f53b0be0d12814250b7.tar ikiwiki-5121198cb9abcdec0a974f53b0be0d12814250b7.tar.gz |
avoid running test if xml::twig is not installed
-rwxr-xr-x | t/map.t | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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"); } |