You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Doug MacEachern <do...@covalent.net> on 2002/11/25 02:42:54 UTC

Re: cvs commit: modperl-2.0/t/conf extra.conf.in

On 24 Nov 2002 stas@apache.org wrote:

> stas        2002/11/24 04:50:31
> 
>   Modified:    t/conf   extra.conf.in
>   Log:
>   Test that <IfDefine !MODPERL2> works
...
>   +    <IfDefine !MODPERL2>
>   +        # This should not be touched, since we're running with mod_perl 2
>   +        PerlModule Doesnt::Exist
>   +    </IfDefine>

hmm, does that really test anything?  i mean, how is this different from, 
say:

<IfDefine !SOMETHING_NOT_DEFINED_BY_ANYTHING>

?

probably better to just put <IfDefine MODPERL2> around everything in 
extra.conf.in to make sure it is defined.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: cvs commit: modperl-2.0/t/conf extra.conf.in

Posted by Doug MacEachern <do...@covalent.net>.
On Mon, 25 Nov 2002, Stas Bekman wrote:
 
> Yup, it tests the thing. If the server starts without defining MODPERL2 
> that section will be executed. Only if MODPERL2 is defined, this section 
> is not being run. Before you have patched the source to DTRT the server 
> was failing here.

doh, i get it now.  nevermind, your test is perfect as is.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: cvs commit: modperl-2.0/t/conf extra.conf.in

Posted by Stas Bekman <st...@stason.org>.
Doug MacEachern wrote:
> On 24 Nov 2002 stas@apache.org wrote:
> 
> 
>>stas        2002/11/24 04:50:31
>>
>>  Modified:    t/conf   extra.conf.in
>>  Log:
>>  Test that <IfDefine !MODPERL2> works
> 
> ...
> 
>>  +    <IfDefine !MODPERL2>
>>  +        # This should not be touched, since we're running with mod_perl 2
>>  +        PerlModule Doesnt::Exist
>>  +    </IfDefine>
> 
> 
> hmm, does that really test anything?  i mean, how is this different from, 
> say:
> 
> <IfDefine !SOMETHING_NOT_DEFINED_BY_ANYTHING>
> 
> ?

Yup, it tests the thing. If the server starts without defining MODPERL2 
that section will be executed. Only if MODPERL2 is defined, this section 
is not being run. Before you have patched the source to DTRT the server 
was failing here.

> probably better to just put <IfDefine MODPERL2> around everything in 
> extra.conf.in to make sure it is defined.

I think my patch is better, because if we do it the way you suggest, 
certain configs will be silently skipped and then we will scratch for a 
bit our heads why some tests are not working.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org