Re: Pluggable lint patch
[p5sagit/p5-mst-13.2.git] / ext / B / t / o.t
index b8b4349..2b84f39 100644 (file)
@@ -1,8 +1,13 @@
 #!./perl -w
 
 BEGIN {
-       chdir 't' if -d 't';
-       @INC = ('../lib', 'lib', '.');
+        if ($ENV{PERL_CORE}){
+               chdir('t') if -d 't';
+               @INC = ('.', 'lib', '../lib');
+        } else {
+               unshift @INC, 't';
+               push @INC, "../../t";
+        }
        require Config;
        if (($Config::Config{'extensions'} !~ /\bB\b/) ){
                print "1..0 # Skip -- Perl configured without B module\n";