Updating Win32 0.39 to have the same line-endings as CPAN
[p5sagit/p5-mst-13.2.git] / cpan / Win32 / t / GetShortPathName.t
CommitLineData
8883bb5a 1use strict;\r
2use Test;\r
3use Win32;\r
4\r
5my $path = "Long Path $$";\r
6unlink($path);\r
7END { unlink $path }\r
8\r
9plan tests => 5;\r
10\r
11Win32::CreateFile($path);\r
12ok(-f $path);\r
13\r
14my $short = Win32::GetShortPathName($path);\r
15ok($short, qr/^\S{1,8}(\.\S{1,3})?$/);\r
16ok(-f $short);\r
17\r
18unlink($path);\r
19ok(!-f $path);\r
20ok(!defined Win32::GetShortPathName($path));\r