kernel32/tests: Add path tests for the ./../foo case.

Signed-off-by: Jeremy White <jwhite@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jeremy White 2015-12-21 15:20:07 -06:00 committed by Alexandre Julliard
parent a0b6bf86f7
commit 81ccc7b816
1 changed files with 11 additions and 0 deletions

View File

@ -2136,6 +2136,17 @@ static void test_relative_path(void)
ok(ret, "GetShortPathName error %d\n", GetLastError()); ok(ret, "GetShortPathName error %d\n", GetLastError());
ok(!strcmp(buf, "..\\foo\\file"), "expected ..\\foo\\file, got %s\n", buf); ok(!strcmp(buf, "..\\foo\\file"), "expected ..\\foo\\file, got %s\n", buf);
strcpy(buf, "deadbeef");
ret = pGetLongPathNameA(".\\..\\foo\\file", buf, MAX_PATH);
todo_wine
ok(ret, "GetLongPathName error %d\n", GetLastError());
todo_wine
ok(!strcmp(buf, ".\\..\\foo\\file"), "expected .\\..\\foo\\file, got %s\n", buf);
strcpy(buf, "deadbeef");
ret = GetShortPathNameA(".\\..\\foo\\file", buf, MAX_PATH);
ok(ret, "GetShortPathName error %d\n", GetLastError());
ok(!strcmp(buf, ".\\..\\foo\\file"), "expected .\\..\\foo\\file, got %s\n", buf);
SetCurrentDirectoryA(".."); SetCurrentDirectoryA("..");
DeleteFileA("foo\\file"); DeleteFileA("foo\\file");
RemoveDirectoryA("foo"); RemoveDirectoryA("foo");