hello, the cause of the problem was the "Listen" directive in autogenerated
httpd.conf that is incompatible with IPv6. the Apache-Test/ToDo file
mentions this problem and there is a patch available. but the fix is not yet
in the mod_perl2 distribution apparently...

tests ran ok, except for one of modperl/request_rec_tie_api.t tests. i will
try to figure out what happened now.

konstantin

----- Original Message -----
From: "Stas Bekman" <[EMAIL PROTECTED]>
To: "konsu" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, January 27, 2004 9:58 PM
Subject: Re: 'make test' fails to start server.


> konsu wrote:
> > thank you for responding.
> >
> > below is the output. t/TEST does not seem to take account of the timeout
> > parameter. still uses the default value.
>
> That's a bug. The fix is below (will be in cvs shortly)
>
> > but i think it does not matter
> > because my server is not overloaded at all. it is a dev machine. i also
> > included the log file (i was wrong when i said that it was empty, i
looked
> > at a wrong file). i also checked whether httpd is running and it does
after
> > t/TEST terminates, even though i ran 'killall httpd' before the test.
>
> but most likely you are right that it's unrelated. I've seen this before
on
> older OpenBSD and AIXs. A few people reported success on FreeBSD with
> non-threaded perl, but I don't remember any specifics. May be check the
> archives? Anyone on FreeBSD who can help konstantin?
>
> [...]
>
> Index: lib/ModPerl/TestRun.pm
> ===================================================================
> RCS file: /home/cvs/modperl-2.0/lib/ModPerl/TestRun.pm,v
> retrieving revision 1.15
> diff -u -r1.15 TestRun.pm
> --- lib/ModPerl/TestRun.pm      15 Dec 2003 02:50:22 -0000      1.15
> +++ lib/ModPerl/TestRun.pm      28 Jan 2004 05:54:27 -0000
> @@ -5,21 +5,22 @@
>
>   use base qw(Apache::TestRunPerl);
>
> +use Apache::Build;
> +
>   # some mp2 tests require more than one server instance to be available
>   # without which the server may hang, waiting for the single server
>   # become available
>   use constant MIN_MAXCLIENTS => 2;
>
> -use Apache::Build;
> -my $build = Apache::Build->build_config;
> +# default timeout in secs (threaded mpms are extremely slow to
> +# startup, due to a slow perl_clone operation)
> +use constant DEFAULT_STARTUP_TIMEOUT =>
> +    Apache::Build->build_config->mpm_is_threaded() ? 180 : 120;
>
>   sub new_test_config {
>       my $self = shift;
>
> -    # timeout in secs (threaded mpms are extremely slow to startup,
> -    # due to a slow perl_clone operation)
> -    $self->{conf_opts}->{startup_timeout} =
> -        $build->mpm_is_threaded() ? 180 : 120;
> +    $self->{conf_opts}->{startup_timeout} ||= DEFAULT_STARTUP_TIMEOUT;
>
>       $self->{conf_opts}->{maxclients} ||= MIN_MAXCLIENTS;
>
>
> __________________________________________________________________
> Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/     mod_perl Guide ---> http://perl.apache.org
> mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org   http://ticketmaster.com
>

-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to