This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Get tr.t working under minitest
authorFather Chrysostomos <sprout@cpan.org>
Mon, 1 Sep 2014 05:33:22 +0000 (22:33 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 3 Sep 2014 03:11:14 +0000 (20:11 -0700)
minitest can run before everything is built.  Hence, we need to make sure
the directories that buildcustomize.pl puts in @INC are not clobbered by
the test script.

t/op/tr.t

index 580d55a..fd69999 100644 (file)
--- a/t/op/tr.t
+++ b/t/op/tr.t
@@ -4,8 +4,9 @@ use utf8;
 
 BEGIN {
     chdir 't' if -d 't';
-    @INC = '../lib';
     require './test.pl';
+    @INC = () unless is_miniperl();
+    unshift @INC, '../lib';
 }
 
 plan tests => 134;