This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Get reg_eval_scope.t working under minitest
[perl5.git] / t / re / reg_eval_scope.t
index 0e35e29..ba34bd8 100644 (file)
@@ -4,8 +4,9 @@
 
 BEGIN {
     chdir 't';
-    @INC = qw(lib ../lib);
     require './test.pl';
+    @INC = () unless is_miniperl();
+    unshift @INC, qw(lib ../lib);
 }
 
 plan 48;