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
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e500fc
)
opening $0 doesn't work if you change directory. So use test.pl
author
Nicholas Clark
<nick@ccl4.org>
Wed, 7 Feb 2007 23:54:53 +0000
(23:54 +0000)
committer
Nicholas Clark
<nick@ccl4.org>
Wed, 7 Feb 2007 23:54:53 +0000
(23:54 +0000)
p4raw-id: //depot/perl@30168
t/op/taint.t
patch
|
blob
|
blame
|
history
diff --git
a/t/op/taint.t
b/t/op/taint.t
index
f661108
..
84600e4
100755
(executable)
--- 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/);