Test::Simple/More/Builder/Tutorial 0.41
[p5sagit/p5-mst-13.2.git] / lib / Test / Simple / t / fail.t
index 9c8f0bd..a041ab0 100644 (file)
@@ -1,12 +1,16 @@
 #!perl -w
 
 BEGIN {
-    chdir 't' if -d 't';
-    @INC = '../lib';
+    if( $ENV{PERL_CORE} ) {
+        chdir 't';
+        @INC = ('../lib', 'lib');
+    }
+    else {
+        unshift @INC, 't/lib';
+    }
 }
 
 use strict;
-use lib qw(../t/lib);
 
 require Test::Simple::Catch;
 my($out, $err) = Test::Simple::Catch::caught();