Skip Menu |

This queue is for tickets about the PathTools CPAN distribution.

Report information
The Basics
Id: 33675
Status: resolved
Priority: 0/
Queue: PathTools

People
Owner: Nobody in particular
Requestors: melazyboy [...] gmail.com
Cc:
AdminCc:

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



Subject: failed test.
as it currently stands this prevents clean installs of most everything on Win32, using the new 3.2701. use Test::More tests => 1; use File::Spec::Win32; my $wdir = 'C:/strawberry'; $wdir =~ s[:][]g; $wdir =~ /(.*)/; my $result = File::Spec::Win32->catfile('C:/cache', $1); ok( $result eq "C:\cache\C\strawberry", "Failed simple test got $result expected C:\cache\C\strawberry" ); 1;
From: melazyboy [...] gmail.com
From: kwilliams [...] cpan.org
There's a mistake in your test, here: Show quoted text
> ok( $result eq "C:\cache\C\strawberry", ...
The first backslash is producing control-a, then the other two are ignored because they don't mean anything. -Ken
I've applied a fix for this issue, though I still contend TT is being naughty by passing a bare $1 in function arguments. -Ken