Test::Simple/More/Builder/Tutorial 0.41
[p5sagit/p5-mst-13.2.git] / lib / Test / Simple / t / extra.t
index acb23fd..1ed94ad 100644 (file)
@@ -1,8 +1,10 @@
 #!perl -w
 
 BEGIN {
-    chdir 't' if -d 't';
-    @INC = '../lib';
+    if( $ENV{PERL_CORE} ) {
+        chdir 't';
+        @INC = '../lib';
+    }
 }
 
 # Can't use Test.pm, that's a 5.005 thing.
@@ -28,6 +30,7 @@ package main;
 
 require Test::Simple;
 
+chdir 't';
 push @INC, '../t/lib/';
 require Test::Simple::Catch;
 my($out, $err) = Test::Simple::Catch::caught();