httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Boris Zentner <bo...@ambient-entertainment.de>
Subject Re: A::T blib vs lib
Date Tue, 21 Oct 2003 18:55:06 GMT

Hi,

im subscribed!

All your hints and tips bring me a step forward, but I stuck on the @INC 
again. Even with the patch.

The only thing that pass my brief tests is to change the order of the included 
path inside TestConfig.pm

--- TestConfig.pm.orig  2003-10-21 20:49:53.000000000 +0200
+++ TestConfig.pm       2003-10-21 20:51:20.000000000 +0200
@@ -1441,7 +1441,7 @@
     # followed by modperl-2.0/lib (or some other project's lib/),
     # followed by blib/ and finally system-wide libs.
     lib::->import(map "$self->{vars}->{top_dir}/$_",
-                  qw(Apache-Test/lib lib blib/lib blib/arch));
+                  qw(Apache-Test/lib blib/arch blib/lib lib));
     #print join "\n", "add_inc", @INC, "";
 }

Am Dienstag, 21. Oktober 2003 18:12 hast Du geschrieben:
> Geoffrey Young wrote:
> > Stas Bekman wrote:
> >> Boris Zentner wrote:
> >>> Hi,
> >>>
> >>> A test against my project show's no real difference at all. I applied
> >>> the patch against Apache-Test-1.04 and I verified that my
> >>> t/conf/modperl_inc.pl contain the desired lines.
> >>>
> >>> use lib '/tmp/ap_ex/blib/arch';
> >>> use lib '/tmp/ap_ex/blib/lib';
> >>> 1;
> >>
> >> Perfect. You are now talking about a different issue. If you look at
> >> t/conf/httpd.conf, t/conf/extra.conf is loaded before
> >> t/conf/modperl_startup.pl (which loads t/conf/modperl_inc.pl and
> >> t/conf/modperl_inc.pl) that's why you have this problem. What you want
> >> to do is to move all the code from the <Perl> sections in
> >> t/conf/extra.conf.in into t/conf/modperl_extra.pl, which is loaded
> >> after t/conf/modperl_inc.pl and you will be alright.
> >
> > or use t/conf/extra.last.conf.in instead of t/conf/extra.conf.in, which
> > is probably an easier solution, as it allows you to maintain a
> > httpd.conf style config.
>
> Yes, sorry, that's the right advise.
>
> Boris, do you mind subscribing to test-dev? otherwise we see only replies
> and never your posts unless they are addressed to one of us. I don't know
> what happened to the moderators and why posts aren't making through :(
> Please send email to test-dev-subscribe@httpd.apache.org
>
>
> __________________________________________________________________
> 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

-- 
Boris


Mime
View raw message