| 1 |
package My::Simple::Test; |
| 2 |
|
| 3 |
use Test2::V0; |
| 4 |
|
| 5 |
my $has_dot_in_inc = grep { $_ eq '.' } @INC; |
| 6 |
ok !$has_dot_in_inc, q['.' is not in @INC run with --no-unsafe-inc]; |
| 7 |
|
| 8 |
{ # relative path in @INC |
| 9 |
my @relative_path = grep { index( $_, '/', 0 ) != 0 } @INC; |
| 10 |
is \@relative_path, [], q[@INC does not contain relative path]; |
| 11 |
} |
| 12 |
|
| 13 |
{ # check elative path in %INC |
| 14 |
my @relative_path = grep { index( $_, '/', 0 ) != 0 } sort values %INC; |
| 15 |
is \@relative_path, [], q[%INC does not contain relative path values]; |
| 16 |
} |
| 17 |
|
| 18 |
done_testing; |