blob: f1c8145e95737cbaa0a7b546e9364a4484c61e44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/usr/bin/perl -w
BEGIN {
if( $ENV{PERL_CORE} ) {
chdir 't';
@INC = ('../lib', 'lib');
}
else {
unshift @INC, 't/lib';
}
}
use Test::Harness;
use Test::More tests => 1;
use Dev::Null;
push @INC, 'we_added_this_lib';
tie *NULL, 'Dev::Null' or die $!;
select NULL;
my($tot, $failed) = Test::Harness::_run_all_tests(
$ENV{PERL_CORE}
? 'lib/sample-tests/inc_taint'
: 't/sample-tests/inc_taint'
);
select STDOUT;
ok( Test::Harness::_all_ok($tot), 'tests with taint on preserve @INC' );
|