File: taint-non-T.t

package info (click to toggle)
libtaint-util-perl 0.08-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 128 kB
  • sloc: perl: 113; makefile: 3
file content (18 lines) | stat: -rw-r--r-- 255 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
=pod

Try tainting when not under B<-T>.

=cut

use strict;

use Test::More tests => 2;
use Taint::Util;

my $s = 420;
ok !tainted($s) => "fresh scalar untainted";

# taint
taint($s); ok !tainted($s) => "did not taint scalar when not under taint mode";