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

index f016d30..7fc587d 100644 (file)
@@ -6,9 +6,10 @@ use warnings;
 
 BEGIN {
     chdir 't' if -d 't';
-    @INC = '../lib';
-    require Config; import Config;
     require './test.pl';
+    @INC = () unless is_miniperl();
+    unshift @INC, '../lib';
+    require Config; import Config;
     require './loc_tools.pl';   # Contains find_utf8_ctype_locale()
 }