summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-02-07 23:54:53 +0000
committerNicholas Clark <nick@ccl4.org>2007-02-07 23:54:53 +0000
commitabb7fb969e178cc19fea40a236916e588c666f16 (patch)
tree1a5772fca49c360a23f04635914022e06714e658 /t
parent5e500fc8e5f18cb370411f45f81b60a9e64dd0e5 (diff)
downloadperl-abb7fb969e178cc19fea40a236916e588c666f16.tar.gz
opening $0 doesn't work if you change directory. So use test.pl
p4raw-id: //depot/perl@30168
Diffstat (limited to 't')
-rwxr-xr-xt/op/taint.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/op/taint.t b/t/op/taint.t
index f66110870a..84600e4673 100755
--- a/t/op/taint.t
+++ b/t/op/taint.t
@@ -1223,9 +1223,9 @@ SKIP:
is ($val, 0, "eval doesn't like tainted strings");
like ($@, qr/^Insecure dependency in eval/);
- # Rather nice code to get a tainted by from Rick Delaney
- open 0 or die $!;
- $tainted=(<0>,<0>);
+ # Rather nice code to get a tainted undef by from Rick Delaney
+ open FH, "test.pl" or die $!;
+ $tainted=(<FH>,<FH>);
eval 'eval $tainted';
like ($@, qr/^Insecure dependency in eval/);