This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c0c4f7
)
Get blocks.t working under miniperl
author
Father Chrysostomos
<sprout@cpan.org>
Tue, 2 Sep 2014 07:16:52 +0000
(
00:16
-0700)
committer
Father Chrysostomos
<sprout@cpan.org>
Wed, 3 Sep 2014 03:11:16 +0000
(20:11 -0700)
If things are broken enough that make_ext.pl cannot run, then mini-
test may run this script 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/blocks.t
patch
|
blob
|
blame
|
history
diff --git
a/t/op/blocks.t
b/t/op/blocks.t
index
fb15eee
..
3b406be
100644
(file)
--- a/
t/op/blocks.t
+++ b/
t/op/blocks.t
@@
-2,8
+2,9
@@
BEGIN {
chdir 't';
- @INC = '../lib';
require './test.pl';
+ @INC = () unless is_miniperl();
+ unshift @INC, '../lib';
}
plan tests => 7;