]> git.vpit.fr Git - perl/modules/Test-Leaner.git/blobdiff - lib/Test/Leaner.pm
Fix and test skip()
[perl/modules/Test-Leaner.git] / lib / Test / Leaner.pm
index 4f5327580106e339ac8b87566805459544aa6d52..dfba80f1505119d9e795865661fbe6264413b0fb 100644 (file)
@@ -183,6 +183,8 @@ sub skip {
  }
 
  for (1 .. $count) {
+  ++$test;
+
   my $skip_str = "ok $test # skip";
   if (defined $reason) {
    sanitize_comment($reason);
@@ -191,8 +193,6 @@ sub skip {
 
   local $\;
   print $TAP_STREAM "$skip_str\n";
-
-  $test++;
  }
 
  no warnings 'exiting';