4 use lib File::Spec->catdir('t', 'lib');
7 if( $^O eq 'MSWin32' ) {
10 plan skip_all => 'this is not win32';
16 my $cdir = getdcwd('C:');
19 my $ddir = getdcwd('D:');
23 # May not have a D: drive mounted
27 # Ensure compatibility with naughty versions of Template::Toolkit,
28 # which pass in a bare $1 as an argument
29 'Foo/strawberry' =~ /(.*)/;
30 my $result = File::Spec::Win32->catfile('C:/cache', $1);
31 is( $result, 'C:\cache\Foo\strawberry' );