From: Amitai Schlair Date: Sun, 23 Aug 2015 01:50:38 +0000 (-0400) Subject: Sans ImageMagick, bail gracefully. X-Git-Tag: 3.20160121~92 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/69f8b6427ef0789ce37cef1c74c5bc6ef16e7e2f Sans ImageMagick, bail gracefully. --- diff --git a/t/img.t b/t/img.t index 7598dd9f0..7f1f4e4b2 100755 --- 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");