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 667a33b..776e14e 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);