This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
update to Test::Simple 0.92
[perl5.git] / t / lib / Test / Simple / sample_tests / death.plx
index ef4ba8c..e682ec0 100644 (file)
@@ -4,10 +4,13 @@ push @INC, 't/lib';
 require Test::Simple::Catch;
 my($out, $err) = Test::Simple::Catch::caught();
 
+require Dev::Null;
+
 Test::Simple->import(tests => 5);
-close STDERR;
+tie *STDERR, 'Dev::Null';
 
 ok(1);
 ok(1);
 ok(1);
-die "Knife?";
+$! = 0;
+die "This is a test";