Subject: | Some tests not working |
Hi,
We have a chroot environment for building packages of modules, and in
this environment the tests for Config-JFDI breaks. After some digging
around I found the problem, but I'm a bit uncertain of why it works
normally.
in t/15-install-accessor.t you do like this:
Line 9: my $config = Config::JFDI->new(qw{ name Xyzzy::Catalyst path
t/assets install_accessor A::Random::Package });
Line 19: $config = Config::JFDI->new(qw{ name Xyzzy::Catalyst path
t/assets install_accessor 1 });
For what I can figure out this will both load t/assets/xyzzy_catalyst.pl
in Config::Any::Perl::load:
return eval { require $file };
In our building environment this returns 1 the second time it is run.
And in the documentation of require (perldoc):
Note that the file will not be included twice under the same
specified name.