develooper Front page | perl.perl5.porters | Postings from August 2009

Make t/harness collect items on Win32

Thread Next
Max Maischein
August 11, 2009 09:07
Make t/harness collect items on Win32
Message ID:

226de479579f4a84dd17654b44e5aef323b0a403 broke bleadperl testing on 
Win32, because the following code rejects Windows paths:

	for (@last) {
	    m!(.*/)! or die "'$_'";
	    push @{$dir{$1}}, $_;
	    $total_time{$1} += $times{$_} || 0;

The symptom is the following:

   X:\...>dmake test
   cd ..\t && ..\perl.exe -I..\lib harness
   No saved state, selection will be empty
   '..\ext\Attribute-Handlers\t\constants.t' at harness line 215.
   dmake:  Error code 255, while making 'test'


The attached patch canonicalizes the directory separator, just like it 
is done a few lines below this change, converting "\\" to "/". It tests 
OK against a recent (within the last 24h) bleadperl.


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About