2 # Testing Cwd under taint mode.
13 use Test::More tests => 16;
14 use Scalar::Util qw/tainted/;
16 my @Functions = qw(getcwd cwd fastcwd fastgetcwd
17 abs_path fast_abs_path
18 realpath fast_realpath
21 foreach my $func (@Functions) {
24 eval { $cwd = &{'Cwd::'.$func} };
25 is( $@, '', "$func() should not explode under taint mode" );
26 ok( tainted($cwd), "its return value should be tainted" );