Sans ImageMagick, bail gracefully.

master
Amitai Schlair 2015-08-22 21:50:38 -04:00
parent 7f76e0ccc1
commit 69f8b6427e
1 changed files with 3 additions and 2 deletions

View File

@ -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");