Sans ImageMagick, bail gracefully.
parent
7f76e0ccc1
commit
69f8b6427e
5
t/img.t
5
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");
|
||||
|
|
Loading…
Reference in New Issue