This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Revert "Update Test-Simple to CPAN version 1.001009"
[perl5.git] / cpan / Test-Simple / t / Legacy / dont_overwrite_die_handler.t
CommitLineData
04955c14 1#!/usr/bin/perl -w
ca5d3bff 2use Config; # To prevent conflict with some strawberry-portable versions
04955c14
SP
3
4BEGIN {
5 if( $ENV{PERL_CORE} ) {
6 chdir 't';
7 @INC = '../lib';
8 }
9}
10
11# Make sure this is in place before Test::More is loaded.
12my $handler_called;
13BEGIN {
14 $SIG{__DIE__} = sub { $handler_called++ };
15}
16
17use Test::More tests => 2;
18
518760d9 19$handler_called = 0;
04955c14
SP
20ok !eval { die };
21is $handler_called, 1, 'existing DIE handler not overridden';