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

package info (click to toggle)
libtest-compile-perl 3.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 324 kB
  • sloc: perl: 816; makefile: 2; sh: 1
file content (20 lines) | stat: -rw-r--r-- 487 bytes parent folder | download
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->_taint_mode('t/scripts/taint.pl');
is($TAINT,"T","Found taint flag in taint.pl");

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

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

done_testing();