This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Refactor t/op/die.t to re-use the same $SIG{__DIE__} handler where possible.
authorNicholas Clark <nick@ccl4.org>
Thu, 30 Aug 2012 13:34:33 +0000 (15:34 +0200)
committerNicholas Clark <nick@ccl4.org>
Thu, 30 Aug 2012 13:38:05 +0000 (15:38 +0200)
commit9aa00c80e0d30d8ecc84072be5c253a368aa5653
tree4ac4808e206080f92accd890db160b69205f714a
parentbd6653b86a7807510f14ea3d0fa8ace7ab8f9374
Refactor t/op/die.t to re-use the same $SIG{__DIE__} handler where possible.

Restore testing that the $SIG{__DIE__} handler is called for the case of
C<die bless [ 7 ], "Error";> which was removed by the previous refactoring.
Re-using the same $SIG{__DIE__} handler results in 4 more tests of isa_ok()
for an 'ARRAY' - this isn't going to hurt anyone.
t/op/die.t