summaryrefslogtreecommitdiff
path: root/t/op
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-09-02 01:30:27 -0700
committerFather Chrysostomos <sprout@cpan.org>2014-09-02 20:11:21 -0700
commitf13bc2c98f73336e693c29dba1bd2e263f51c550 (patch)
tree1e90bad73e47b9f347547b7d575617656033cde8 /t/op
parent9fe17b616f163eee7322228c5ccbbff961d00f08 (diff)
downloadperl-f13bc2c98f73336e693c29dba1bd2e263f51c550.tar.gz
Get write.t working under minitest
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.
Diffstat (limited to 't/op')
-rw-r--r--t/op/write.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/op/write.t b/t/op/write.t
index 7591cde6aa..30d6defa31 100644
--- a/t/op/write.t
+++ b/t/op/write.t
@@ -2,8 +2,9 @@
BEGIN {
chdir 't' if -d 't';
- @INC = '../lib';
require './test.pl';
+ @INC = () unless is_miniperl();
+ unshift @INC, '../lib';
}
use strict; # Amazed that this hackery can be made strict ...