Move Test::Simple from lib to ext.
[p5sagit/p5-mst-13.2.git] / ext / Test-Simple / t / dont_overwrite_die_handler.t
CommitLineData
04955c14 1#!/usr/bin/perl -w
2
3BEGIN {
4 if( $ENV{PERL_CORE} ) {
5 chdir 't';
6 @INC = '../lib';
7 }
8}
9
10# Make sure this is in place before Test::More is loaded.
11my $handler_called;
12BEGIN {
13 $SIG{__DIE__} = sub { $handler_called++ };
14}
15
16use Test::More tests => 2;
17
18ok !eval { die };
19is $handler_called, 1, 'existing DIE handler not overridden';