Test::Simple/More/Builder/Tutorial 0.41
[p5sagit/p5-mst-13.2.git] / lib / Test / Simple / t / skipall.t
index e41dbc7..6f255e2 100644 (file)
@@ -1,7 +1,12 @@
 BEGIN {
-    chdir 't' if -d 't';
-    @INC = '../lib';
-}
+    if( $ENV{PERL_CORE} ) {
+        chdir 't';
+        @INC = ('../lib', 'lib');
+    }
+    else {
+        unshift @INC, 't/lib';
+    }
+}   
 
 use strict;
 
@@ -27,7 +32,6 @@ sub ok ($;$) {
 package main;
 require Test::More;
 
-push @INC, '../t/lib';
 require Test::Simple::Catch;
 my($out, $err) = Test::Simple::Catch::caught();