This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
don't rely on ghost contexts being unmolested
authorZefram <zefram@fysh.org>
Sun, 24 Oct 2010 13:57:21 +0000 (14:57 +0100)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 24 Oct 2010 18:40:00 +0000 (11:40 -0700)
commit8f89e5a94a208b4017fb2fb80d6a0e23cd552ed9
tree908f1376e69a56debccf3bfbc36f5cbd37743312
parentccbfef1989966a87df0683fb781de40d0fad1f84
don't rely on ghost contexts being unmolested

Dying and returning from a format both relied on the state of a
just-popped context frame being preserved across a LEAVE.  Don't rely
on it.  Test using an operator ripped off from Scope::Cleanup, which makes
it easy to run arbitrary Perl code during cleanup, without isolating it
on a separate context stack as the DESTROY mechanism does.
MANIFEST
ext/XS-APItest/APItest.xs
ext/XS-APItest/t/cleanup.t [new file with mode: 0644]
pp_ctl.c
pp_sys.c