On Mon, 27 Aug 2001, Doug MacEachern wrote:
> i didn't try the patch, but i think i just hit the same problem. can you
> test if its fixed now?
partially,
the thaw problem is not there anymore, but the configuration won't proceed
because, there will be a left-over t/conf/httpd.conf and even ./t/TEST
-clean won't clean it up. Just apply my patch and run 'make test' you will
see.
I still have to go to ./t/conf and manually delete files.
May be we need to specify a target consisting of all files that are
required for the configuration to be reused, and if at least one of them
is not there, force reconfiguration?
In fact the only patch you need to reproduce the problem is:
Index: Apache-Test/lib/Apache/TestConfigPerl.pm
===================================================================
RCS file:
/home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfigPerl.pm,v
retrieving revision 1.20
diff -u -r1.20 TestConfigPerl.pm
--- Apache-Test/lib/Apache/TestConfigPerl.pm 2001/08/27 17:13:26 1.20
+++ Apache-Test/lib/Apache/TestConfigPerl.pm 2001/08/28 15:21:51
@@ -245,11 +245,13 @@
my @args;
my $pm = $_;
- my $module = catfile $File::Find::dir, $pm;
- $self->add_module_config($module, \@args);
- $module = abs2rel $module, $dir;
+ my $file = catfile $File::Find::dir, $pm;
+ $self->add_module_config($file, \@args);
+ my $module = abs2rel $file, $dir;
$module =~ s,\.pm$,,;
$module = join '::', splitdir $module;
+
+ require $file;
my($base, $sub) =
map { s/^test//i; $_ } split '::', $module;
require() fails and messes up the configuration files, turning the tree
un-buildable.
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:[EMAIL PROTECTED] http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]