summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/perl/cpan/Test-Harness/t/sample-tests/taint_warn
blob: 398d6181eecce605237b86fc3ab650662d23d7f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/perl -tw

use lib qw(t/lib);
use Test::More tests => 1;

my $warnings = '';
{
    local $SIG{__WARN__} = sub { $warnings .= join '', @_ };
    `$^X -e1`;
}
like( $warnings, '/^Insecure dependency/', '-t honored' );