Paul Vriens : crypt32/tests: Skip test if we don't have enough rights.
Alexandre Julliard
julliard at winehq.org
Mon Feb 11 14:19:26 CST 2008
Module: wine
Branch: master
Commit: 24e4267bf9b7d2e2f6961838621f7cdf27a599b4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=24e4267bf9b7d2e2f6961838621f7cdf27a599b4
Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date: Sat Feb 9 17:20:58 2008 +0100
crypt32/tests: Skip test if we don't have enough rights.
---
dlls/crypt32/tests/oid.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/crypt32/tests/oid.c b/dlls/crypt32/tests/oid.c
index b4950fc..2477bf5 100644
--- a/dlls/crypt32/tests/oid.c
+++ b/dlls/crypt32/tests/oid.c
@@ -449,9 +449,13 @@ static void test_getDefaultOIDFunctionAddress(void)
"Expected ERROR_FILE_NOT_FOUND, got %d\n", GetLastError());
/* Even with a registered dll, this fails (since the dll doesn't exist) */
+ SetLastError(0xdeadbeef);
ret = CryptRegisterDefaultOIDFunction(0, "CertDllOpenStoreProv", 0,
bogusDll);
- ok(ret, "CryptRegisterDefaultOIDFunction failed: %08x\n", GetLastError());
+ if (!ret && GetLastError() == ERROR_ACCESS_DENIED)
+ skip("Need admin rights\n");
+ else
+ ok(ret, "CryptRegisterDefaultOIDFunction failed: %08x\n", GetLastError());
ret = CryptGetDefaultOIDFunctionAddress(set, 0, NULL, 0, &funcAddr,
&hFuncAddr);
ok(!ret && GetLastError() == ERROR_FILE_NOT_FOUND,
More information about the wine-cvs
mailing list