summaryrefslogtreecommitdiff
path: root/cpan/Test-Harness/t/proverc.t
diff options
context:
space:
mode:
Diffstat (limited to 'cpan/Test-Harness/t/proverc.t')
-rw-r--r--cpan/Test-Harness/t/proverc.t14
1 files changed, 14 insertions, 0 deletions
diff --git a/cpan/Test-Harness/t/proverc.t b/cpan/Test-Harness/t/proverc.t
index 37d6de803b..5a7d97e161 100644
--- a/cpan/Test-Harness/t/proverc.t
+++ b/cpan/Test-Harness/t/proverc.t
@@ -1,5 +1,15 @@
#!/usr/bin/perl -w
+BEGIN {
+ if ( $ENV{PERL_CORE} ) {
+ chdir 't';
+ @INC = ( '../lib', 'lib' );
+ }
+ else {
+ unshift @INC, 't/lib';
+ }
+}
+
use strict;
use lib 't/lib';
use Test::More tests => 1;
@@ -10,6 +20,10 @@ my $prove = App::Prove->new;
$prove->add_rc_file(
File::Spec->catfile(
+ ( $ENV{PERL_CORE}
+ ? ( File::Spec->updir(), 'ext', 'Test-Harness' )
+ : ()
+ ),
't', 'data',
'proverc'
)