autogenerate API listing from comments in the source (from Benjamin
[p5sagit/p5-mst-13.2.git] / t / lib / glob-taint.t
CommitLineData
72b16652 1#!./perl -T
2
3BEGIN {
4 chdir 't' if -d 't';
5 unshift @INC, '../lib';
6 print "1..2\n";
7}
8END {
9 print "not ok 1\n" unless $loaded;
10}
11use File::Glob;
12$loaded = 1;
13print "ok 1\n";
14
15# all filenames should be tainted
16@a = File::Glob::glob("*");
17eval { $a = join("",@a), kill 0; 1 };
18unless ($@ =~ /Insecure dependency/) {
19 print "not ";
20}
21print "ok 2\n";