X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FTest%2FLeaner.pm;h=336bf31c3d56ca17a9712de6074b411adfc490a1;hb=04fdbaf85a26eafd9d5d1e15c3ee46ef360de509;hp=4f5327580106e339ac8b87566805459544aa6d52;hpb=95d98c140e711be6185a7ff61ac78668ebc91155;p=perl%2Fmodules%2FTest-Leaner.git diff --git a/lib/Test/Leaner.pm b/lib/Test/Leaner.pm index 4f53275..336bf31 100644 --- a/lib/Test/Leaner.pm +++ b/lib/Test/Leaner.pm @@ -35,7 +35,7 @@ sub SKIP_ALL () { -2 } BEGIN { if (THREADSAFE) { - threads::shared::share($_) for $plan, $test, $failed, $no_diag; + threads::shared::share($_) for $plan, $test, $failed, $no_diag, $done_testing; } lock $plan if THREADSAFE; @@ -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';