This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
test more about exit from special blocks
authorZefram <zefram@fysh.org>
Fri, 22 Dec 2017 07:54:38 +0000 (07:54 +0000)
committerZefram <zefram@fysh.org>
Fri, 22 Dec 2017 07:54:38 +0000 (07:54 +0000)
commit503bc07b4b9e34ed04a725b2bc8faec1ae0f3be2
tree0d12151596d3c038efc4a1df385f4e97f769aacc
parent8fe3452cc6ac7af8c08c2044cd3757018a9c8887
test more about exit from special blocks

Commit 0301e899536a22752f40481d8a1d141b7a7dda82 introduced some tests
about ways of exiting from special blocks.  Make those tests more
thorough, checking which kinds of special blocks execute after exiting
from a special block.  This tests, for example, that exiting from a BEGIN
block prevents INIT blocks from running, which when applied to exit(0)
is how that bugfix commit broke Module::Install [perl #132577].
t/op/blocks.t