Hi,
    Regarding the problem of the mod_perl tests
not recognizing Apache::Cookie and Apache::Request
on Win32 after they've been installed, as Jiho found,
this was due to Win32 not having a populated 
%callback_hooks in t/net/config.pl. For Unix
systems, this information is appended to config.pl
in the init_tests_and_config sub in the top-level 
Makefile.PL, which is skipped on Win32. The patch
below, applied to the current mod_perl cvs version,
appends, for Win32, the %callback_hooks 
to config.pl. With this patch, the tests for Apache::Cookie
and Apache::Request are run on Win32 when these
modules are installed (and all pass, with a suitably
patched libapreq for Win32).

best regards,
randy kobes

***************************************************
--- Makefile.PL.orig Wed Sep 27 17:18:10 2000
+++ Makefile.PL Sun Oct 01 15:16:18 2000
@@ -861,6 +861,23 @@
     }
 }
 
+if ($Is_Win32 and ! -e "t/net/config.pl") {
+  cp "t/net/config.pl.dist", "t/net/config.pl";
+  my $hf = FileHandle->new(">>t/net/config.pl") or 
+    die "can't open t/net/config.pl $!";
+  my($k,$v);
+  my(%all) = %callback_hooks;
+  while(($k,$v) = each %experimental) {
+    $all{$k} = ($experimental{$k} > 1) ? 1 : 0;
+  }
+  print $hf "%callback_hooks = (\n";
+  while(($k,$v) = each %all) {
+    print $hf "   $k => $v,\n";
+  }
+  print $hf ");\n1;\n";
+  $hf->close;
+}
+
 unless (-e "t/net/config.pl") {
     cp "t/net/config.pl.dist", "t/net/config.pl";
 }

***************************************************



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

Reply via email to