crypt32: Remove a test because of a Windows 2003 SP1 bug.

This commit is contained in:
Juan Lang 2007-10-25 09:05:38 -07:00 committed by Alexandre Julliard
parent e2f1f39b52
commit 8240395073
1 changed files with 4 additions and 10 deletions

View File

@ -1374,17 +1374,11 @@ static void testGetIssuerCert(void)
flags); flags);
if (parent) if (parent)
CertFreeCertificateContext(parent); CertFreeCertificateContext(parent);
/* Now check just the time */ /* Checking time validity is not productive, because while most Windows
flags = CERT_STORE_TIME_VALIDITY_FLAG; * versions return 0 (time valid) because the child is not expired,
parent = CertGetIssuerCertificateFromStore(store, child, NULL, &flags); * Windows 2003 SP1 returns that it is expired. Thus the range of
ok(parent != NULL, "CertGetIssuerCertificateFromStore failed: %08x\n", * possibilities is covered, and a test verifies nothing.
GetLastError());
/* Oops: the child is not expired, so the time validity check actually
* succeeds, even though the signing cert is expired.
*/ */
ok(!flags, "Expected check to succeed, got %08x\n", flags);
if (parent)
CertFreeCertificateContext(parent);
CertFreeCertificateContext(child); CertFreeCertificateContext(child);
CertCloseStore(store, 0); CertCloseStore(store, 0);