Skip to content

Commit f2ba7be

Browse files
committed
per @mauke comment in GH 23649
The 'exit;' statement is here to ensure that bar does not return normally. (If it did, the exit would be executed, making the test fail because the rest of the planned tests wouldn't have run.) For clarity, I would recommend adding an explicit fail.
1 parent 0f04a5d commit f2ba7be

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

t/op/goto.t

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ sub bar {
7474
}
7575

7676
&bar;
77+
fail('goto bypass');
78+
exit;
7779

7880
FINALE:
7981
is(curr_test(), 20, 'FINALE');

0 commit comments

Comments
 (0)