Hi, I'm getting '[ error] Failed to find a config file to save the custom configuration in' during one of my tests.
The code (spec file) looks like: ================================================================= export APACHE_TEST_NO_STICKY_PREFERENCES=1 %perl Makefile.PL -apxs=%{apxs} make %{?jobs:-j%jobs} && t/TEST -apxs %{apxs} -httpd_conf %{sysconfdir}/original/httpd-modperl.conf ================================================================= So, APACHE_TEST_NO_STICKY_PREFERENCES is set and it shouldn't reach at all the place where the error is printed. The test uses Apache::Test in a <perl> section in extra.last.conf.in: ================================================================= <Perl> use Util::Search; use Apache::Test; use Apache::TestUtil qw/t_catfile/; $My::Search=Util::Search- >new(config=>Apache::Test::vars(qw/t_dir/).'/config'); ... ================================================================= I believe the APACHE_TEST_NO_STICKY_PREFERENCES is not propagated to the Apache environment. And hence is tries to save the custom config. Does that sound reasonable? If yes, I think the place to fix it is in Apache-Test/lib/Apache/TestConfigPerl.pm: ================================================================= # propogate PerlPassEnv settings to the server sub configure_env { my $self = shift; $self->preamble(IfModule => 'mod_perl.c', [ qw(PerlPassEnv APACHE_TEST_TRACE_LEVEL PerlPassEnv HARNESS_PERL_SWITCHES) ]); } ================================================================= Shouldn't APACHE_TEST_NO_STICKY_PREFERENCES be added to this list? Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@perl.apache.org For additional commands, e-mail: dev-h...@perl.apache.org