File: tain.t

package info (click to toggle)
libencode-locale-perl 1.05-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 104 kB
  • sloc: perl: 241; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 343 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!perl -Tw

use strict;
use warnings;

# taint mode testing as seen in WWW::Mechanize

use Test::More tests => 1;
my @warns;
BEGIN {
    $SIG{__WARN__} = sub { push @warns, @_ };
}
BEGIN {
    delete @ENV{qw( PATH IFS CDPATH ENV BASH_ENV )};  # Placates taint-unsafe Cwd.pm in 5.6.1
}

require Encode::Locale;

is "@warns", "", 'no warnings';