21 push @paths, map { my $x = $_; $x =~ s,/,\\,g; $x } @paths;
32 my $drive = $ENV{SystemDrive};
37 push @paths, $ENV{SystemRoot} if $ENV{SystemRoot};
40 @expect{@paths} = map { my $x = $_; $x =~ s,(.[/\\])[/\\]+,$1,g; $x } @paths;
42 plan tests => scalar(@paths);
46 my $got = Win32::GetLongPathName($_);
47 print "# '$_' => expect '$expect{$_}' => got '$got'\n";
48 print "not " unless $expect{$_} eq $got;