Skip to content

Commit 34e05af

Browse files
jetjandubois
authored andcommitted
Fix tests 14,15 of GetFullPathName.t, which failed when the lib-win32 package is unpacked and tested in a top level folder (e.g. P:\Win32-0.53)
1 parent da6fd0c commit 34e05af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/GetFullPathName.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ ok((Win32::GetFullPathName(substr($cwd,2)))[1], $file);
2727

2828
ok(scalar Win32::GetFullPathName('/Foo Bar/'), substr($cwd,0,2)."\\Foo Bar\\");
2929

30-
chdir($dir);
31-
ok(scalar Win32::GetFullPathName('.'), $dir);
30+
chdir(my $dird = $dir !~ /^[A-Z]:$/ ? $dir : "$dir\\");
31+
ok(scalar Win32::GetFullPathName('.'), $dird);
3232

3333
ok((Win32::GetFullPathName($file))[0], "$dir\\");
3434
ok((Win32::GetFullPathName($file))[1], $file);

0 commit comments

Comments
 (0)