advapi32/tests: Use skip for not implemented function.

This commit is contained in:
Paul Vriens 2007-07-05 17:22:27 +02:00 committed by Alexandre Julliard
parent 35edd40f33
commit 21492e4904
1 changed files with 6 additions and 0 deletions

View File

@ -1734,9 +1734,15 @@ static void test_GetNamedSecurityInfoA(void)
ret = GetWindowsDirectoryA(windows_dir, MAX_PATH);
ok(ret, "GetWindowsDirectory failed with error %d\n", GetLastError());
SetLastError(0xdeadbeef);
error = GetNamedSecurityInfoA(windows_dir, SE_FILE_OBJECT,
OWNER_SECURITY_INFORMATION|GROUP_SECURITY_INFORMATION|DACL_SECURITY_INFORMATION,
NULL, NULL, NULL, NULL, &pSecDesc);
if (error != ERROR_SUCCESS && (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED))
{
skip("GetNamedSecurityInfoA is not implemented\n");
return;
}
ok(!error, "GetNamedSecurityInfo failed with error %d\n", error);
ret = GetSecurityDescriptorControl(pSecDesc, &control, &revision);