xref: /openbsd-src/gnu/usr.bin/perl/cpan/Test-Harness/t/sample-tests/taint_warn (revision b39c515898423c8d899e35282f4b395f7cad3298)
1#!/usr/bin/perl -tw
2
3use lib qw(t/lib);
4use Test::More tests => 1;
5
6my $warnings = '';
7{
8    local $SIG{__WARN__} = sub { $warnings .= join '', @_ };
9    `$^X -e1`;
10}
11like( $warnings, '/^Insecure dependency/', '-t honored' );
12