????

Your IP : 3.17.12.229


Current Path : /usr/share/doc/perl-Test-Simple/t/lib/Test/Simple/sample_tests/
Upload File :
Current File : //usr/share/doc/perl-Test-Simple/t/lib/Test/Simple/sample_tests/death_with_handler.plx

require Test::Simple;

push @INC, 't/lib';
require Test::Simple::Catch;
my($out, $err) = Test::Simple::Catch::caught();

Test::Simple->import(tests => 2);

# Test we still get the right exit code despite having a die
# handler.
$SIG{__DIE__} = sub {};

require Dev::Null;
tie *STDERR, 'Dev::Null';

ok(1);
ok(1);

$! = 0;
die "This is a test";