diff options
author | Father Chrysostomos <sprout@cpan.org> | 2014-08-31 22:38:26 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2014-09-02 20:11:15 -0700 |
commit | f2b25aae946cb16fd38f3531fea3c67b6fdd4a07 (patch) | |
tree | 7d397ad2a2cc7fac39f730af4b3f5e055f402d23 /t/uni | |
parent | 7be3525f28b7d6eca660834627b50fe59d061e5d (diff) | |
download | perl-f2b25aae946cb16fd38f3531fea3c67b6fdd4a07.tar.gz |
Get t/uni/cache.t working under minitest
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.
Diffstat (limited to 't/uni')
-rw-r--r-- | t/uni/cache.t | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/t/uni/cache.t b/t/uni/cache.t index 7b6e31e08a..87953f38ce 100644 --- a/t/uni/cache.t +++ b/t/uni/cache.t @@ -1,7 +1,8 @@ BEGIN { chdir 't' if -d 't'; - @INC = qw(../lib .); - require "test.pl"; + require './test.pl'; + @INC = () unless is_miniperl(); + unshift @INC, '../lib'; } plan tests => 1; |