This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
update to Test::Simple 0.92
[perl5.git]
/
t
/
lib
/
Test
/
Simple
/
sample_tests
/
death.plx
diff --git
a/t/lib/Test/Simple/sample_tests/death.plx
b/t/lib/Test/Simple/sample_tests/death.plx
index
ef4ba8c
..
e682ec0
100644
(file)
--- a/
t/lib/Test/Simple/sample_tests/death.plx
+++ b/
t/lib/Test/Simple/sample_tests/death.plx
@@
-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";