This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Inching towards Module::Build-ability on VMS.
[perl5.git] / lib / if.t
index d17ff51..d09de58 100644 (file)
--- a/lib/if.t
+++ b/lib/if.t
@@ -1,7 +1,7 @@
 #!./perl
 
 BEGIN {
-    chdir 't' and @INC = '../lib' if -f 't/TEST';
+    chdir 't' and @INC = '../lib' if $ENV{PERL_CORE};
 }
 
 my $t = 1;