Permalink
Browse files

Don't test with obsolete development versions.

  • Loading branch information...
1 parent fc9391a commit 53f9e29b11b4161143509af5787732650213b009 @pjcj committed May 21, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/Devel/Cover/Test.pm
View
@@ -216,6 +216,14 @@ sub run_test
return;
}
+ my $version = int(($] - 5) * 1000);
+ if ($version %2 && $version < 16)
+ {
+ Test::plan tests => 1;
+ Test::skip("Perl version $] is an obsolete development version", 1);
+ return;
+ }
+
my ($base, $v) = $self->cover_gold;
return 1 unless $v; # assume we are generating the golden results
my $gold = "$base.$v";

0 comments on commit 53f9e29

Please sign in to comment.