This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Upgrade to Filter::Simple 0.82
[perl5.git] / lib / Filter / Simple / t / export.t
index 40c62da..d72fcfa 100644 (file)
@@ -1,12 +1,16 @@
 BEGIN {
-    if ($ENV{PERL_CORE}) {
-        chdir('t') if -d 't';
-       @INC = qw(lib/Filter/Simple ../lib);
+    if( $ENV{PERL_CORE} ) {
+        chdir 't';
+        @INC = '../lib';
+    }
+    else {
+        unshift @INC, 't/lib/';
     }
 }
+chdir 't';
 
 BEGIN { print "1..1\n" }
 
-use ExportTest 'ok';
+use Filter::Simple::ExportTest 'ok';
 
 notok 1;