diff options
author | Father Chrysostomos <sprout@cpan.org> | 2014-08-23 23:22:26 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2014-08-23 23:33:13 -0700 |
commit | cc7e6304967ecf351513ec99028a4b95f166ac1c (patch) | |
tree | 09ff961ad9c1682dfa950430c76f0b7918da94c9 /t | |
parent | d8f2b4423a52fa446d007c5cf5cb349d82eaa2f1 (diff) | |
download | perl-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')
-rw-r--r-- | t/comp/hints.t | 2 | ||||
-rw-r--r-- | t/comp/require.t | 2 | ||||
-rw-r--r-- | t/re/overload.t | 2 | ||||
-rw-r--r-- | t/re/pat.t | 2 | ||||
-rw-r--r-- | t/re/reg_mesg.t | 2 | ||||
-rw-r--r-- | t/re/regex_sets.t | 2 | ||||
-rw-r--r-- | t/re/regexp.t | 2 |
7 files changed, 7 insertions, 7 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 { diff --git a/t/re/overload.t b/t/re/overload.t index dba0357a4f..ee821f1e78 100644 --- a/t/re/overload.t +++ b/t/re/overload.t @@ -2,7 +2,7 @@ BEGIN { chdir 't' if -d 't'; - @INC = '../lib'; + @INC = qw '../lib ../ext/re'; require './test.pl'; } diff --git a/t/re/pat.t b/t/re/pat.t index 62ce76afb3..ec4eea0028 100644 --- a/t/re/pat.t +++ b/t/re/pat.t @@ -15,7 +15,7 @@ $| = 1; BEGIN { chdir 't' if -d 't'; - @INC = ('../lib','.'); + @INC = ('../lib','.','../ext/re'); require Config; import Config; require './test.pl'; } diff --git a/t/re/reg_mesg.t b/t/re/reg_mesg.t index 2c54cc3113..d4df2ec1e6 100644 --- a/t/re/reg_mesg.t +++ b/t/re/reg_mesg.t @@ -2,7 +2,7 @@ BEGIN { chdir 't' if -d 't'; - @INC = '../lib'; + @INC = qw '../lib ../ext/re'; require './test.pl'; eval 'require Config'; # assume defaults if this fails } diff --git a/t/re/regex_sets.t b/t/re/regex_sets.t index 9ddceae577..2df6148e91 100644 --- a/t/re/regex_sets.t +++ b/t/re/regex_sets.t @@ -12,7 +12,7 @@ $| = 1; BEGIN { chdir 't' if -d 't'; - @INC = ('../lib','.'); + @INC = ('../lib','.','../ext/re'); require './test.pl'; } diff --git a/t/re/regexp.t b/t/re/regexp.t index ac211caa88..fd1da7cf53 100644 --- a/t/re/regexp.t +++ b/t/re/regexp.t @@ -59,7 +59,7 @@ BEGIN { } chdir 't' if -d 't'; - @INC = '../lib'; + @INC = qw '../lib ../ext/re'; } |