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

Make t/harness collect items on Win32

Thread Next
From:
Max Maischein
Date:
August 11, 2009 09:07
Subject:
Make t/harness collect items on Win32
Message ID:
4A819742.8050109@corion.net
Hello,

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'

   X:\...>

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.

-max


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About