Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions t/op/goto.t
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ sub bar {
}

&bar;
fail('goto bypass');
exit;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This 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.)

It is important that the exit (or equivalent) remain there. For clarity, I would recommend adding an explicit fail:

&bar;
fail('goto bypass');
exit;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updating p.r. per your comments; additional eyeballs welcome.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks; squashed and rebased on blead. Will leave open for 1 day for any other comments, then commit.


FINALE:
Expand Down
Loading