Skip to content

Commit

Permalink
Skip criteria test on perls below 5.8.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
pjcj committed Sep 20, 2010
1 parent 3d64c34 commit efead27
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion t/internal/criteria.t
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
use strict;
use warnings;

use Test::More tests => 5;
use Test::More;
use Test::Warn;

use Devel::Cover "-silent", 1;

if ($] < 5.008000)
{
plan skip_all => "Test requires perl 5.8.0 or greater";
}
else
{
plan tests => 5;
}

Devel::Cover::set_coverage("none");
is Devel::Cover::get_coverage(), "", "Set coverage to none empties coverage";

Expand Down

0 comments on commit efead27

Please sign in to comment.