Skip to content

Commit 715e763

Browse files
committed
Prevent bail_out summary when no handler for it is defined
1 parent 3d9b4c6 commit 715e763

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Changes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Revision history for Test-Harness
22

33
- Prevent double summary on bail-out
4+
- Prevent bail_out summary when no handler for it is defined
45

56
3.49_01 2024-04-27
67
- Simplify runtests

lib/TAP/Harness.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ sub _bailout {
609609
$job->finish;
610610

611611
my $explanation = $result->explanation;
612-
$self->{bail_summary}();
612+
$self->{bail_summary}() if $self->{bail_summary};
613613
die "FAILED--Further testing stopped"
614614
. ( $explanation ? ": $explanation\n" : ".\n" );
615615
}

0 commit comments

Comments
 (0)