On Fri, Jun 15, 2007 at 07:38:20AM -0400, John Scoles wrote:
> Here iz the latest
> 
> I started from a 'clean' install by removing old versions of DBI and DBD 
> with PPM
> 
> >t/19fhtrace...............ok 13/21Use of uninitialized value in open, 
> ><TRACEFD> line 4.
> >
> >I suspect that's because you're using 5.8.0. Please try the attached 
> >patch.
> 
> The patch worked fine

Great. Thanks.

> but still getting this error in  t/41prof_dump.t
> 
> Error:  Can't locate Apache.pm in @INC (@INC contains: C:\DBI-1.57\blib\lib 
> C:\DBI-1
> .57\blib\arch C:\Program Files\ActiveState Perl Dev Kit 6.0\lib C:/Perl/lib 
> C:/Perl/site/l
> ib .) at C:\DBI-1.57\blib\lib/DBI/ProfileDumper/Apache.pm line 184.
> # Compilation failed in require at (eval 17) line 2.
> Checked the distribution and Apache.pm is where it is suppose to be  at
> C:\DBI-1.57\blib\lib\DBI\ProfileDumper\Apache.pm

Ah, it's finding DBI/ProfileDumper/Apache.pm just fine. The problem is
that it shouldn't really be trying to. Here's a patch:

--- t/41prof_dump.t     (revision 9640)
+++ t/41prof_dump.t     (working copy)
@@ -85,6 +85,7 @@
 
 # should be able to load DBI::ProfileDumper::Apache outside apache
 # this also naturally checks for syntax errors etc.
-require_ok('DBI::ProfileDumper::Apache');
+require_ok('DBI::ProfileDumper::Apache')
+    if -d ".svn" && -f "MANIFEST.SKIP"; # for developers only
 
 1;


> It is now throwing a few other little things though.  I have attached 
> output of the nmake test

> t/80proxy.................Can't locate DBI/ProxyServer.pm in @INC (@INC 
> contains: C:\DBI-1.57\blib\lib:C:\DBI-1.57\blib\arch:C:\Program 
> Files\ActiveState Perl Dev 
> Kit 6.0\lib:C:/Perl/lib:C:/Perl/site/lib:. C:/Perl/lib C:/Perl/site/lib .) at 
> dbiproxy line  10
> Server process didn't create a file 'ndtest.prt'. at 
> C:/Perl/site/lib/Net/Daemon/Test.pm line 317.
> t/80proxy.................dubious
>        Test returned status 2 (wstat 512, 0x200)

Ah! What's really weird about this bug is that it's been there for years...
You only found it because you deleted the installed versions. Thanks!

--- t/80proxy.t (revision 9640)
+++ t/80proxy.t (working copy)
@@ -6,7 +6,7 @@
 
 
 use DBI;
-require Config;
+use Config;
 require VMS::Filespec if $^O eq 'VMS';
 require Cwd;
 
@@ -90,7 +90,7 @@
     # local $ENV{PERLDB_OPTS} = "AutoTrace NonStop=1 LineInfo=dbiproxy.dbg";
 
     # pass our @INC to children (e.g., so -Mblib passes through)
-    $ENV{PERL5LIB} = join(':', @INC);
+    $ENV{PERL5LIB} = join($Config{path_sep}, @INC);
 
     my $dbi_trace_level = DBI->trace(0);
     my @child_args = (

The bug affects gofer tests as well. Since I've made some other
(assorted minor) changes, I'll upload a new release candidate in a hour
or three.

Tim.

Reply via email to