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:
parent
a0b6bf86f7
commit
81ccc7b816
|
@ -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");
|
||||||
|
|
Loading…
Reference in New Issue