From cc7e6304967ecf351513ec99028a4b95f166ac1c Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Sat, 23 Aug 2014 23:22:26 -0700 Subject: Partial minitest fix-up MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 :-). --- t/re/overload.t | 2 +- t/re/pat.t | 2 +- t/re/reg_mesg.t | 2 +- t/re/regex_sets.t | 2 +- t/re/regexp.t | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 't/re') 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'; } -- cgit v1.2.1