Paul Vriens : advapi32/tests: Skip not available functions.
Alexandre Julliard
julliard at winehq.org
Mon Mar 3 14:03:31 CST 2008
Module: wine
Branch: master
Commit: bfc290f6d0779ce83017155703ea7a530e8a7e79
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bfc290f6d0779ce83017155703ea7a530e8a7e79
Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date: Mon Mar 3 10:46:06 2008 +0100
advapi32/tests: Skip not available functions.
---
dlls/advapi32/tests/security.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c
index 5086cb7..9ff02e9 100644
--- a/dlls/advapi32/tests/security.c
+++ b/dlls/advapi32/tests/security.c
@@ -910,8 +910,17 @@ static void test_AccessCheck(void)
/* test INHERIT_ONLY_ACE */
ret = InitializeAcl(Acl, 256, ACL_REVISION);
ok(ret, "InitializeAcl failed with error %d\n", GetLastError());
- ret = pAddAccessAllowedAceEx(Acl, ACL_REVISION, INHERIT_ONLY_ACE, KEY_READ, EveryoneSid);
- ok(ret, "AddAccessAllowedAceEx failed with error %d\n", GetLastError());
+
+ /* NT doesn't have AddAccessAllowedAceEx. Skipping this call/test doesn't influence
+ * the next ones.
+ */
+ if (pAddAccessAllowedAceEx)
+ {
+ ret = pAddAccessAllowedAceEx(Acl, ACL_REVISION, INHERIT_ONLY_ACE, KEY_READ, EveryoneSid);
+ ok(ret, "AddAccessAllowedAceEx failed with error %d\n", GetLastError());
+ }
+ else
+ skip("AddAccessAllowedAceEx is not available\n");
ret = AccessCheck(SecurityDescriptor, Token, KEY_READ, &Mapping,
PrivSet, &PrivSetLen, &Access, &AccessStatus);
More information about the wine-cvs
mailing list