logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: [Module::Build] [PATCH] make test failure report (Cygwin): msg#00059

Subject: Re: [Module::Build] [PATCH] make test failure report (Cygwin)
On 10/14/2003 11:04 PM, Randy W. Sims wrote:

PS. I've attached output of the error I'm getting from t/runthrough.t on Win2k for the archives.

not ok 23# Test 23 got: '<SOFTPKG NAME="Sample" VERSION="0,01,0,0">

    <TITLE>Sample</TITLE>
</ABSTRACT>CT>Foo foo sample foo
    <AUTHOR>Sample Man &lt;sample@xxxxxxxxxxx&gt;</AUTHOR>
    <IMPLEMENTATION>
        <DEPENDENCY NAME="File-Spec" VERSION="0,0,0,0" />
        <CODEBASE HREF="/path/to/codebase" />
    </IMPLEMENTATION>
</SOFTPKG>
' (t/runthrough.t at line 130)
#    Expected: '<SOFTPKG NAME="Sample" VERSION="0,01,0,0">
    <TITLE>Sample</TITLE>
    <ABSTRACT>Foo foo sample foo</ABSTRACT>
    <AUTHOR>Sample Man &lt;sample@xxxxxxxxxxx&gt;</AUTHOR>
    <IMPLEMENTATION>
        <DEPENDENCY NAME="File-Spec" VERSION="0,0,0,0" />
        <CODEBASE HREF="/path/to/codebase" />
    </IMPLEMENTATION>
</SOFTPKG>
'
Deleting Sample.ppd
Deleting save_out
Deleting Sample-0.01.tar.gz
Deleting lib/Sample/Script
Deleting blib
Deleting _build
Deleting Build

And here is the patch to fix it; It seems the line ending in the abstract was causing trouble. BTW, wouldn't it be better to use Pod::Parser in the dist_* routines for more acurate results?

This gets Cygwin Win2k working. Now I got figure out what is happening on Win9x.

Randy.
--- Base.pm.orig        2003-10-15 00:40:07.000000000 -0400
+++ Base.pm     2003-10-15 00:46:32.000000000 -0400
@@ -397,6 +397,7 @@
     last if ($result) = /^(?:$package\s-\s)(.*)/;
   }
   
+  $result =~ s/\s+$//;
   return $p->{dist_abstract} = $result;
 }
 
<Prev in Thread] Current Thread [Next in Thread>