kernel32/tests: Skip some tests if needed (WinXP Home).
This commit is contained in:
parent
0c67d1bddb
commit
c2f5442f2a
|
@ -1026,7 +1026,15 @@ static void test_GetLongPathNameA(void)
|
||||||
lstrcatA(longpath, strchr(temppath, '\\') + 1);
|
lstrcatA(longpath, strchr(temppath, '\\') + 1);
|
||||||
|
|
||||||
/* NULL test */
|
/* NULL test */
|
||||||
|
SetLastError(0xdeadbeef);
|
||||||
length = pGetLongPathNameA(unc_short, NULL, 0);
|
length = pGetLongPathNameA(unc_short, NULL, 0);
|
||||||
|
if (length == 0 && GetLastError() == ERROR_BAD_NETPATH)
|
||||||
|
{
|
||||||
|
/* Seen on Window XP Home */
|
||||||
|
win_skip("UNC with computername is not supported\n");
|
||||||
|
DeleteFileA(tempfile);
|
||||||
|
return;
|
||||||
|
}
|
||||||
explength = lstrlenA(longpath) + 1;
|
explength = lstrlenA(longpath) + 1;
|
||||||
todo_wine
|
todo_wine
|
||||||
ok(length == explength, "Wrong length %d, expected %d\n", length, explength);
|
ok(length == explength, "Wrong length %d, expected %d\n", length, explength);
|
||||||
|
|
Loading…
Reference in New Issue