This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Get override.t working under minitest
[perl5.git] / t / op / override.t
index ce740ea..31889a4 100644 (file)
@@ -2,8 +2,9 @@
 
 BEGIN {
     chdir 't' if -d 't';
-    @INC = '../lib';
     require './test.pl';
+    @INC = () unless is_miniperl();
+    unshift @INC, qw '../lib ../cpan/Text-ParseWords/lib';
     require Config; # load these before we mess with *CORE::GLOBAL::require
     require 'Config_heavy.pl'; # since runperl will need them
 }