stas 2004/01/05 12:23:47
Modified: ModPerl-Registry/t TEST.PL Log: even the registry test suite sometimes times out under worker mpm, bump up the timeout to 180 for threaded, and to 90 on prefork mpms Revision Changes Path 1.11 +7 -0 modperl-2.0/ModPerl-Registry/t/TEST.PL Index: TEST.PL =================================================================== RCS file: /home/cvs/modperl-2.0/ModPerl-Registry/t/TEST.PL,v retrieving revision 1.10 retrieving revision 1.11 diff -u -u -r1.10 -r1.11 --- TEST.PL 5 Nov 2003 09:52:18 -0000 1.10 +++ TEST.PL 5 Jan 2004 20:23:47 -0000 1.11 @@ -21,6 +21,8 @@ use Cwd (); use File::Spec::Functions qw(splitpath splitdir catpath catdir rootdir); +use Apache::Build; + # subclass new_test_config to add some config vars which will be # replaced in generated httpd.conf sub new_test_config { @@ -33,6 +35,11 @@ $self->{conf_opts}->{src_dir} = catdir $base, qw(src modules perl); $self->{conf_opts}->{maxclients} = MIN_MAXCLIENTS; + + # timeout in secs (threaded mpms are extremely slow to startup, + # due to a slow perl_clone operation) + $self->{conf_opts}->{startup_timeout} = + Apache::Build->build_config->mpm_is_threaded() ? 180 : 90; return $self->SUPER::new_test_config; }