List Info

Thread: Re: Fix ext/Win32API/File/t/file.t under test harness




Re: Fix ext/Win32API/File/t/file.t under test harness
user name
2007-02-27 12:25:03
Jerry D. Hedden wrote:
> "./perl -I../lib harness" causes failures in
> ext/Win32API/File/t/file.t such as:
> 
> # attrLetsToBits: Can't locate Carp/Heavy.pm in INC
> (INC contains: ../lib /usr/lib/perl5/5.9/cygwin
> /usr/lib/perl5/5.9 .) at ../lib/Carp.pm line 39.
> 
> not ok 56
> 
> This is caused by the test script chdir'ing to a temp
dir.
> The attached patch loads Carp::Heavy before testing
> begins.

Steve Hay wrote:
> C:p5pbleadperlt>.perl -I..lib harness
..extWin32APIFiletfile.t
> 
> runs without error for me. So does:
> 
> C:p5pbleadperlt>..perl harness
..extWin32APIFiletfile.t

That may be because on your system, the 'temp' dir ends up
as '.':

    $temp= $ENV{"TMP"};
    $temp= $ENV{"TEMP"}	unless -d $temp;
    $temp= "C:/Temp"	unless -d $temp;
    $temp= "."		unless -d $temp;



 
____________________________________________________________
________________________
Finding fabulous fares is fun.  
Let Yahoo! FareChase search your favorite travel sites to
find flight and hotel bargains.
htt
p://farechase.yahoo.com/promo-generic-14795097

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )