]> git.imager.perl.org - imager.git/commitdiff
skip t/x30podlinkcheck.t if Pod::Parser 1.50 not available
authorTony Cook <tony@p250.dhcp.tony.develop-help.com>
Mon, 18 Feb 2013 08:58:22 +0000 (19:58 +1100)
committerTony Cook <tony@p250.dhcp.tony.develop-help.com>
Mon, 18 Feb 2013 08:58:22 +0000 (19:58 +1100)
t/x30podlinkcheck.t

index 667a33b28a4315522d322838b0aa7ca1789115fb..776e14e8175f2e04cbb1b6deeb723784dbaa73cc 100644 (file)
@@ -1,7 +1,10 @@
 #!perl -w
 use strict;
 use Test::More;
-use Pod::Parser 1.50;
+BEGIN {
+  eval 'use Pod::Parser 1.50;';
+  plan skip_all => "Pod::Parser 1.50 required for podlinkcheck" if $@;
+}
 use File::Find;
 use File::Spec::Functions qw(rel2abs abs2rel splitdir);