From 21492e49044c5cb7658140a7221fc910573e2ee8 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Thu, 5 Jul 2007 17:22:27 +0200 Subject: [PATCH] advapi32/tests: Use skip for not implemented function. --- dlls/advapi32/tests/security.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c index 532dc69e2d0..247827cc198 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);