Add standard core test header to Test::Builder::Tester tests.
[p5sagit/p5-mst-13.2.git] / lib / Test / Simple / t / plan_is_noplan.t
index 6d1ed17..e39cd40 100644 (file)
@@ -1,20 +1,16 @@
 BEGIN {
-    chdir 't' if -d 't';
-    @INC = '../lib';
+    if( $ENV{PERL_CORE} ) {
+        chdir 't';
+        @INC = ('../lib', 'lib');
+    }
+    else {
+        unshift @INC, 't/lib';
+    }
 }
 
 # Can't use Test.pm, that's a 5.005 thing.
 package My::Test;
 
-# This feature requires a fairly new version of Test::Harness
-BEGIN {
-    require Test::Harness;
-    if( $Test::Harness::VERSION < 1.20 ) {
-        print "1..0 # Skipped: Need Test::Harness 1.20 or up\n";
-        exit(0);
-    }
-}
-
 print "1..2\n";
 
 my $test_num = 1;
@@ -35,7 +31,6 @@ package main;
 
 require Test::Simple;
 
-push @INC, '../t/lib';
 require Test::Simple::Catch;
 my($out, $err) = Test::Simple::Catch::caught();