advapi32/tests: Skip tests for ACL file info if ACL info not stored.
This commit is contained in:
parent
085c39342b
commit
5c45c35e4e
|
@ -3156,8 +3156,10 @@ static void test_GetSecurityInfo(void)
|
||||||
ok(sd != NULL, "GetSecurityInfo\n");
|
ok(sd != NULL, "GetSecurityInfo\n");
|
||||||
ok(owner != NULL, "GetSecurityInfo\n");
|
ok(owner != NULL, "GetSecurityInfo\n");
|
||||||
ok(group != NULL, "GetSecurityInfo\n");
|
ok(group != NULL, "GetSecurityInfo\n");
|
||||||
ok(dacl != NULL, "GetSecurityInfo\n");
|
if (dacl != NULL)
|
||||||
ok(IsValidAcl(dacl), "GetSecurityInfo\n");
|
ok(IsValidAcl(dacl), "GetSecurityInfo\n");
|
||||||
|
else
|
||||||
|
win_skip("No ACL information returned\n");
|
||||||
|
|
||||||
LocalFree(sd);
|
LocalFree(sd);
|
||||||
|
|
||||||
|
@ -3176,8 +3178,10 @@ static void test_GetSecurityInfo(void)
|
||||||
ok(ret == ERROR_SUCCESS, "GetSecurityInfo returned %d\n", ret);
|
ok(ret == ERROR_SUCCESS, "GetSecurityInfo returned %d\n", ret);
|
||||||
ok(owner != NULL, "GetSecurityInfo\n");
|
ok(owner != NULL, "GetSecurityInfo\n");
|
||||||
ok(group != NULL, "GetSecurityInfo\n");
|
ok(group != NULL, "GetSecurityInfo\n");
|
||||||
ok(dacl != NULL, "GetSecurityInfo\n");
|
if (dacl != NULL)
|
||||||
ok(IsValidAcl(dacl), "GetSecurityInfo\n");
|
ok(IsValidAcl(dacl), "GetSecurityInfo\n");
|
||||||
|
else
|
||||||
|
win_skip("No ACL information returned\n");
|
||||||
|
|
||||||
CloseHandle(obj);
|
CloseHandle(obj);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue