This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Get t/uni/title.t working under minitest
authorFather Chrysostomos <sprout@cpan.org>
Mon, 1 Sep 2014 05:43:45 +0000 (22:43 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 3 Sep 2014 03:11:16 +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/uni/title.t

index 2d6dcb7..4cd4090 100644 (file)
@@ -1,7 +1,8 @@
 BEGIN {
     chdir 't' if -d 't';
-    @INC = qw(../lib uni .);
-    require "case.pl";
+    require "uni/case.pl";
+    @INC = () unless is_miniperl();
+    unshift @INC, qw(../lib .);
 }
 
 casetest(0, # No extra tests run here,