Module: wine Branch: master Commit: 44e7d7b682088bed6a00ab22fd1e014b4790fc0a URL: http://source.winehq.org/git/wine.git/?a=commit;h=44e7d7b682088bed6a00ab22fd...
Author: Juan Lang juan.lang@gmail.com Date: Thu Jan 29 11:20:46 2009 -0800
crypt32: Move test for duplicating a NULL cert to existing function.
---
dlls/crypt32/tests/cert.c | 15 ++++----------- 1 files changed, 4 insertions(+), 11 deletions(-)
diff --git a/dlls/crypt32/tests/cert.c b/dlls/crypt32/tests/cert.c index 844fd28..a22ec7c 100644 --- a/dlls/crypt32/tests/cert.c +++ b/dlls/crypt32/tests/cert.c @@ -662,6 +662,10 @@ static void testDupCert(void) CertFreeCertificateContext(context); } CertCloseStore(store, 0); + + SetLastError(0xdeadbeef); + context = CertDuplicateCertificateContext(NULL); + ok(context == NULL, "Expected context to be NULL\n"); }
static BYTE subjectName3[] = { 0x30, 0x15, 0x31, 0x13, 0x30, 0x11, 0x06, @@ -3136,16 +3140,6 @@ static void testGetPublicKeyLength(void) ok(ret == 56, "Expected length 56, got %d\n", ret); }
-static void testCertDuplicateCertificateContext(void) -{ - PCCERT_CONTEXT context; - - SetLastError(0xdeadbeef); - context = CertDuplicateCertificateContext(NULL); - ok(context == NULL, "Expected context to be NULL\n"); -} - - START_TEST(cert) { init_function_pointers(); @@ -3173,5 +3167,4 @@ START_TEST(cert) testVerifyRevocation(); testAcquireCertPrivateKey(); testGetPublicKeyLength(); - testCertDuplicateCertificateContext(); }