This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix the test boilerplate in lib/if.t, so it can be run
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Sun, 30 Nov 2003 20:56:00 +0000 (20:56 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Sun, 30 Nov 2003 20:56:00 +0000 (20:56 +0000)
from the t/ directory.

p4raw-id: //depot/perl@21828

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;