Skip Menu |

This queue is for tickets about the Path-Resource CPAN distribution.

Report information
The Basics
Id: 32444
Status: resolved
Priority: 0/
Queue: Path-Resource

People
Owner: Nobody in particular
Requestors: RENEEB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: beware of different path "delimiters"
The tests fail on Windows as the path-delimiter is "\" not "/", so = snip = # Failed test '1: Path::Resource->new(dir => "apple", uri => "http://banana", loc => "cherry")->child("grape")->dir is apple/grape' # at t\01-Path-Resource.t line 46. # got: 'apple\grape' # expected: 'apple/grape' # Failed test '2: Path::Resource->new(dir => "apple", uri => "http://banana", loc => "cherry")->child("grape")->child("kiwi")->dir is apple/grape/kiwi' # at t\01-Path-Resource.t line 46. # got: 'apple\grape\kiwi' # expected: 'apple/grape/kiwi' = snap =
From: rkrimen [...] cpan.org
Thanks for pointing this out, I'll look into it shortly. On Sat Jan 19 11:44:45 2008, RENEEB wrote: Show quoted text
> The tests fail on Windows as the path-delimiter is "\" not "/", so > > = snip = > # Failed test '1: Path::Resource->new(dir => "apple", uri => > "http://banana", > loc => "cherry")->child("grape")->dir is apple/grape' > # at t\01-Path-Resource.t line 46. > # got: 'apple\grape' > # expected: 'apple/grape' > > # Failed test '2: Path::Resource->new(dir => "apple", uri => > "http://banana", > loc => "cherry")->child("grape")->child("kiwi")->dir is apple/grape/kiwi' > # at t\01-Path-Resource.t line 46. > # got: 'apple\grape\kiwi' > # expected: 'apple/grape/kiwi' > = snap =
I was able to recreate this by forcing @File::Spec::ISA to File::Spec::Win32 I've patched the test files and written additional tests to check for Win32 compatablity. Path-Resource-0.070 should be on CPAN shortly Thanks for the report.