1#!./perl -T
2
3BEGIN {
4    chdir 't' if -d 't';
5    @INC = '../lib';
6    require Config; import Config;
7    if ($Config{'extensions'} !~ /\bFile\/Glob\b/i) {
8        print "1..0\n";
9        exit 0;
10    }
11}
12
13use Test::More;
14BEGIN {
15    plan(
16        ${^TAINT}
17        ? (tests => 2)
18        : (skip_all => "Appear to running a perl without taint support")
19    );
20}
21
22BEGIN {
23    use_ok('File::Glob');
24}
25
26@a = File::Glob::bsd_glob("*");
27eval { $a = join("",@a), kill 0; 1 };
28like($@, qr/Insecure dependency/, 'all filenames should be tainted');
29