summaryrefslogtreecommitdiff
path: root/t/comp
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-08-23 23:22:26 -0700
committerFather Chrysostomos <sprout@cpan.org>2014-08-23 23:33:13 -0700
commitcc7e6304967ecf351513ec99028a4b95f166ac1c (patch)
tree09ff961ad9c1682dfa950430c76f0b7918da94c9 /t/comp
parentd8f2b4423a52fa446d007c5cf5cb349d82eaa2f1 (diff)
downloadperl-cc7e6304967ecf351513ec99028a4b95f166ac1c.tar.gz
Partial minitest fix-up
While minitest passes all its tests when everything has been built, it is sometimes useful to run it when nothing has been built but miniperl (especially when one is working on low-level stuff that breaks miniperl). Many tests fail if things have not been built yet because miniperl can’t find modules like re.pm. This patch fixes up some tests to find those modules and changes _charnames.pm to load File::Spec only when it needs it. There are still many more failures, but I’ll leave the rest for another time (or another hacker :-).
Diffstat (limited to 't/comp')
-rw-r--r--t/comp/hints.t2
-rw-r--r--t/comp/require.t2
2 files changed, 2 insertions, 2 deletions
diff --git a/t/comp/hints.t b/t/comp/hints.t
index 9a08854d86..391287caac 100644
--- a/t/comp/hints.t
+++ b/t/comp/hints.t
@@ -3,7 +3,7 @@
# Tests the scoping of $^H and %^H
BEGIN {
- @INC = qw(. ../lib);
+ @INC = qw(. ../lib ../ext/re);
chdir 't';
}
diff --git a/t/comp/require.t b/t/comp/require.t
index 4eafce4d6b..f817527495 100644
--- a/t/comp/require.t
+++ b/t/comp/require.t
@@ -3,7 +3,7 @@
BEGIN {
chdir 't' if -d 't';
@INC = '.';
- push @INC, '../lib';
+ push @INC, '../lib', '../ext/re';
}
sub do_require {