Skip to content

Commit 9e15c8b

Browse files
committed
Skip tests in the END block explicitely
skip_all doesn't skip assertions in the END block.
1 parent 49d4674 commit 9e15c8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/14destruct.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ $SIG{__WARN__} = sub { die @_ };
2121
END {
2222
my $sth1_copy = $sth1;
2323
my $sth2_copy = $sth2;
24-
pass;
24+
pass if $sth1;
2525
}

0 commit comments

Comments
 (0)