File: 100-internal-is-in-taint-mode.t

package info (click to toggle)
libtest-compile-perl 1.0.1-1~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 252 kB
  • sloc: perl: 516; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 505 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!perl

use strict;
use warnings;

use Test::More;
use Test::Compile::Internal;

my $internal = Test::Compile::Internal->new();

my $TAINT = $internal->_is_in_taint_mode('t/scripts/taint.pl');
is($TAINT,"T","Found taint flag in taint.pl");

my $taint = $internal->_is_in_taint_mode('t/scripts/CVS/taint2.pl');
is($taint,"t","Found taint warning flag in taint2.pl");

my $not = $internal->_is_in_taint_mode('t/scripts/subdir/success.pl');
is($not,"","No taint flags found in success.pl");

done_testing();