summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2012-03-11 14:27:29 +1100
committerTony Cook <tony@develop-help.com>2012-03-12 09:54:36 +1100
commitaf89892edf2ed1bf0c26d1b75e74d81410d8c81f (patch)
tree5729d2b6ed4aec9f525f219475890d93bed5ba3a
parent3a3e1efce7f28011ce73f2f824c0114319c32573 (diff)
downloadperl-af89892edf2ed1bf0c26d1b75e74d81410d8c81f.tar.gz
[rt #111654] TODO test for tainted die propagation
-rw-r--r--t/op/taint.t11
1 files changed, 10 insertions, 1 deletions
diff --git a/t/op/taint.t b/t/op/taint.t
index 1b754399f9..095c99115a 100644
--- a/t/op/taint.t
+++ b/t/op/taint.t
@@ -17,7 +17,7 @@ BEGIN {
use strict;
use Config;
-plan tests => 793;
+plan tests => 794;
$| = 1;
@@ -2197,6 +2197,15 @@ pass("no death when TARG of ref is tainted");
is_tainted "\F$utf8", "under locale, \\Futf8 taints the result";
}
+{ # 111654
+ local $::TODO = "RT #111654";
+ eval {
+ eval { die "Test\n".substr($ENV{PATH}, 0, 0); };
+ die;
+ };
+ like($@, qr/^Test\n\t\.\.\.propagated at /, "error should be propagated");
+}
+
# This may bomb out with the alarm signal so keep it last
SKIP: {
skip "No alarm()" unless $Config{d_alarm};