Stas,
A bit more testing has revealed more about modperl_inc.pl to me. I had
neglected to realize that modperl_inc.pl only gets loaded on server
startup. I had been running my tests using the following commands:
t/TEST -start
t/TEST -run-tests
When I made the changes to modperl_inc.pl, I had not restarted the
server and therefore did not see the @INC output. Once I restarted the
server, I began to see the output. The weird thing is that the output of
@INC in modperl_inc.pl is very different from the output of @INC in my
test script (see example at end of email).
Also, I found the blib paths in t/conf/apache_test_config.pm and decided
to comment those out to see what would happen. As you can see from the
output of @INC below, those changes did not appear to have any effect.
Is the apache_test_config.pm file documented anywhere? What is this file
doing?
Thanks,
William
---------------------------------------------------------------------
setting ulimit to allow core files
ulimit -c unlimited; t/TEST 't/02WebBase.t'
/usr/local/apache/bin/httpd -d /home/quicktel/QT-Web/t -f
/home/quicktel/QT-Web/t/conf/httpd.conf -DAPACHE1
using Apache/1.3.29
waiting 60 seconds for server to start: 00:00$VAR1 = [
'/home/quicktel/QT-Web/lib',
'/home/quicktel/QT-Web/blib/lib',
'/home/quicktel/QT-Web/blib/arch',
'/home/quicktel/QT-Web/t',
'/usr/local/lib/perl5/5.8.2/i686-linux',
'/usr/local/lib/perl5/5.8.2',
'/usr/local/lib/perl5/site_perl/5.8.2/i686-linux',
'/usr/local/lib/perl5/site_perl/5.8.2',
'/usr/local/lib/perl5/site_perl',
'/usr/share/perl5/',
'.',
'/home/quicktel/QT-Web/t/',
'/home/quicktel/QT-Web/t/lib/perl'
];
waiting 60 seconds for server to start: ok (waited 1 secs)
server localhost:8529 started
server localhost:8530 listening (*)
02WebBase....ok 2/11[Tue Dec 23 10:22:45 2003] 02WebBase.t: $VAR1 = [
[Tue Dec 23 10:22:45 2003] 02WebBase.t: '/home/quicktel/QT-Web/blib/lib',
[Tue Dec 23 10:22:45 2003] 02WebBase.t: '/home/quicktel/QT-Web/blib/arch',
[Tue Dec 23 10:22:45 2003] 02WebBase.t: '/home/quicktel/QT-Web/lib',
[Tue Dec 23 10:22:45 2003] 02WebBase.t: 'lib',
[Tue Dec 23 10:22:45 2003] 02WebBase.t: '/usr/local/lib/perl5/5.8.2/i686-linux',
[Tue Dec 23 10:22:45 2003] 02WebBase.t: '/usr/local/lib/perl5/5.8.2',
[Tue Dec 23 10:22:45 2003] 02WebBase.t:
'/usr/local/lib/perl5/site_perl/5.8.2/i686-linux',
[Tue Dec 23 10:22:45 2003] 02WebBase.t: '/usr/local/lib/perl5/site_perl/5.8.2',
[Tue Dec 23 10:22:45 2003] 02WebBase.t: '/usr/local/lib/perl5/site_perl',
[Tue Dec 23 10:22:45 2003] 02WebBase.t: '/usr/share/perl5/',
[Tue Dec 23 10:22:45 2003] 02WebBase.t: '.'
[Tue Dec 23 10:22:45 2003] 02WebBase.t: ];
02WebBase....ok
All tests successful.
Files=1, Tests=11, 2 wallclock secs ( 1.66 cusr + 0.13 csys = 1.79
CPU)
server localhost:8529 shutdown
---------------------------------------------------------------------
--
Knowmad Services Inc.
http://www.knowmad.com