sync a bunch of files with Test::Simple 0.86
[p5sagit/p5-mst-13.2.git] / t / lib / Test / Simple / sample_tests / death_with_handler.plx
CommitLineData
04955c14 1require Test::Simple;
3c4bf434 2# $Id$
04955c14 3
4push @INC, 't/lib';
5require Test::Simple::Catch;
6my($out, $err) = Test::Simple::Catch::caught();
7
8Test::Simple->import(tests => 2);
9
10# Test we still get the right exit code despite having a die
11# handler.
12$SIG{__DIE__} = sub {};
13
14require Dev::Null;
15tie *STDERR, 'Dev::Null';
16
17ok(1);
18ok(1);
c7623038 19
20$! = 0;
04955c14 21die "This is a test";