>>Next I want you to try cutting off things from startup files and 
>>httpd.conf, to find whether it's some unrelated module that is loaded that 
>>causes the problem. I suspect that because the sister test 
>>t/perl/ithreads2.t doesn't fail, and it runs exactly the same code, but 
>>inside a dedicated interpreter pool, which doesn't load any other modules.
>>
>>    
>>
>Will try (again), but I've tried this before and got nowhere with it :(
>

While trawling through the httpd.conf file I found a couple of what look 
like errors:  Two places say "PERL_ITHREADS" instead of 
"PERL_USEITHREADS".  Correcting these apparent mistakes fixes the broken 
test sequence previously reported!

Diff of what I changed is attached.  Sorry - no time to figure out where 
httpd.conf is written :(

After making this change I found that reload.t now fails test 2.  This 
patch (against current CVS, since I can't get SVN working) fixes that:

Index: t/modules/reload.t
===================================================================
RCS file: /home/cvspublic/modperl-2.0/t/modules/reload.t,v
retrieving revision 1.4
diff -u -u -r1.4 reload.t
--- t/modules/reload.t  11 Sep 2004 01:02:28 -0000      1.4
+++ t/modules/reload.t  26 Nov 2004 18:05:21 -0000
@@ -53,7 +53,7 @@
 touch_mtime($test_file);

 {
-    my $expected = join '', map { "$_:" . uc($_) . "\n" } sort @tests;
+    my $expected = join '', map { "$_:$_\n" } sort @tests;
     my $received = get_body($same_interp, \&GET, $location);
     $skip++ unless defined $received;
     skip_not_same_interp(

If someone can fix the generation of httpd.conf (in CVS!) then I'll give 
the full test suite (incl perl/ithreads) a whirl next week...

HTH,
- Steve


------------------------------------------------
Radan Computational Ltd.

The information contained in this message and any files transmitted with it are 
confidential and intended for the addressee(s) only.  If you have received this 
message in error or there are any problems, please notify the sender 
immediately.  The unauthorized use, disclosure, copying or alteration of this 
message is strictly forbidden.  Note that any views or opinions presented in 
this email are solely those of the author and do not necessarily represent 
those of Radan Computational Ltd.  The recipient(s) of this message should 
check it and any attached files for viruses: Radan Computational will accept no 
liability for any damage caused by any virus transmitted by this email.
--- t/conf/httpd.conf.orig      2004-11-26 17:13:11.614920700 +0000
+++ t/conf/httpd.conf   2004-11-26 18:07:26.701808200 +0000
@@ -182,7 +182,7 @@
     PerlRequire C:\Temp\modperl-2.0\t\conf\modperl_startup.pl
 </IfModule>
 
-<IfDefine PERL_ITHREADS>
+<IfDefine PERL_USEITHREADS>
     PerlInterpScope handler
 </Ifdefine>
 <Location /TestApache__cgihandler>
@@ -918,7 +918,7 @@
     
     KeepAlive On
     
-    <IfDefine PERL_ITHREADS>
+    <IfDefine PERL_USEITHREADS>
         PerlInterpScope connection
     </IfDefine>
     

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to