Test::Simple/More/Builder/Tutorial 0.41
[p5sagit/p5-mst-13.2.git] / lib / Test / Simple / t / fail-like.t
index 0821713..1336763 100644 (file)
@@ -7,17 +7,20 @@ BEGIN {
     }
 }
 
+BEGIN {
+    if( $ENV{PERL_CORE} ) {
+        chdir 't';
+        @INC = ('../lib', 'lib');
+    }
+    else {
+        unshift @INC, 't/lib';
+    }
+}
 
 # There was a bug with like() involving a qr// not failing properly.
 # This tests against that.
 
-BEGIN { 
-    chdir 't' if -d 't';
-    @INC = '../lib';
-}
-
 use strict;
-use lib '../t/lib';
 
 require Test::Simple::Catch;
 my($out, $err) = Test::Simple::Catch::caught();