]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
Sans ImageMagick, bail gracefully.
authorAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>
Sun, 23 Aug 2015 01:50:38 +0000 (21:50 -0400)
committerAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>
Sun, 23 Aug 2015 01:50:38 +0000 (21:50 -0400)
t/img.t

diff --git a/t/img.t b/t/img.t
index 7598dd9f02459fc91825979703fdfcb7f846765c..7f1f4e4b2d77dc56a1b6ed567ee522acb67b75cb 100755 (executable)
--- a/t/img.t
+++ b/t/img.t
@@ -14,9 +14,10 @@ package IkiWiki;
 use warnings;
 use strict;
 use Test::More;
+plan(skip_all => "Image::Magick not available")
+       unless eval q{use Image::Magick};
 
-BEGIN { use_ok("IkiWiki"); }
-BEGIN { use_ok("Image::Magick"); }
+use IkiWiki;
 
 my $magick = new Image::Magick;
 my $SVGS_WORK = defined $magick->QueryFormat("svg");