File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
{{$NEXT}}
2
2
3
+ - Fix done_testing(0) producing 2 plans and an incorrect message
4
+
3
5
1.302194 2023-03-13 20:06:57-07:00 America/Los_Angeles
4
6
5
7
- Fix failing test on 5.10
Original file line number Diff line number Diff line change @@ -1670,7 +1670,7 @@ sub _ending {
1670
1670
return unless $plan || $count || $failed ;
1671
1671
1672
1672
# Ran tests but never declared a plan or hit done_testing
1673
- if ( !$hub -> plan and $hub -> count ) {
1673
+ if ( !defined ( $hub -> plan) and $hub -> count ) {
1674
1674
$self -> diag(" Tests were run but no plan was declared and done_testing() was not seen." );
1675
1675
1676
1676
if ($real_exit_code ) {
Original file line number Diff line number Diff line change @@ -432,7 +432,7 @@ sub finalize {
432
432
$count = $self -> {+COUNT};
433
433
$failed = $self -> {+FAILED};
434
434
435
- if (($plan && $plan eq ' NO PLAN' ) || ($do_plan && !$plan )) {
435
+ if ((defined ( $plan ) && $plan eq ' NO PLAN' ) || ($do_plan && !defined ( $plan ) )) {
436
436
$self -> send (
437
437
Test2::Event::Plan-> new(
438
438
trace => $trace ,
You can’t perform that action at this time.
0 commit comments