Paul Vriens : advapi32/tests: Use skip for not implemented function.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Jul 5 13:31:25 CDT 2007
Module: wine
Branch: master
Commit: 21492e49044c5cb7658140a7221fc910573e2ee8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=21492e49044c5cb7658140a7221fc910573e2ee8
Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date: Thu Jul 5 17:22:27 2007 +0200
advapi32/tests: Use skip for not implemented function.
---
dlls/advapi32/tests/security.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c
index 532dc69..247827c 100644
--- a/dlls/advapi32/tests/security.c
+++ b/dlls/advapi32/tests/security.c
@@ -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);
More information about the wine-cvs
mailing list