Module: wine Branch: master Commit: c44d22466c81f60e18bbc4983c6353551e639410 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c44d22466c81f60e18bbc4983c...
Author: Paul Vriens paul.vriens.wine@gmail.com Date: Wed Jun 13 15:52:16 2007 +0200
crypt32/tests: Skip tests if we don't have enough rights.
---
dlls/crypt32/tests/sip.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/crypt32/tests/sip.c b/dlls/crypt32/tests/sip.c index 9f775ef..22a7b9e 100644 --- a/dlls/crypt32/tests/sip.c +++ b/dlls/crypt32/tests/sip.c @@ -84,6 +84,11 @@ static void test_AddRemoveProvider(void) newprov.pwszRemoveFuncName = dummyfunction; SetLastError(0xdeadbeef); ret = CryptSIPAddProvider(&newprov); + if (!ret && GetLastError() == ERROR_ACCESS_DENIED) + { + skip("Need admin rights\n"); + return; + } ok ( ret, "CryptSIPAddProvider should have succeeded\n");
/* Dummy provider will be deleted, but the function still fails because