]> git.vpit.fr Git - perl/modules/Test-Leaner.git/blobdiff - lib/Test/Leaner.pm
Also print the plan at the END when a test failed under 'no_plan'
[perl/modules/Test-Leaner.git] / lib / Test / Leaner.pm
index 8d25ca941f036109d7c39b704badb9cc163f264e..bc684ec1c99ab662e9e6c0edefd53513432e3a5f 100644 (file)
@@ -658,7 +658,8 @@ END {
     $? = $failed <= 254 ? $failed : 254;
    } elsif ($plan >= 0) {
     $? = $test == $plan ? 0 : 255;
-   } elsif ($plan == NO_PLAN) {
+   }
+   if ($plan == NO_PLAN) {
     local $\;
     print $TAP_STREAM "1..$test\n";
    }