crypt32/tests: Don't check return values inside of if(0) (LLVM/Clang).
This commit is contained in:
parent
f6364bf970
commit
c6301aec11
|
@ -47,8 +47,7 @@ static void test_findAttribute(void)
|
|||
if (0)
|
||||
{
|
||||
/* crashes */
|
||||
SetLastError(0xdeadbeef);
|
||||
ret = CertFindAttribute(NULL, 1, NULL);
|
||||
CertFindAttribute(NULL, 1, NULL);
|
||||
/* returns NULL, last error is ERROR_INVALID_PARAMETER
|
||||
* crashes on Vista
|
||||
*/
|
||||
|
@ -138,7 +137,7 @@ static void test_findRDNAttr(void)
|
|||
{
|
||||
/* crashes */
|
||||
SetLastError(0xdeadbeef);
|
||||
ret = CertFindRDNAttr(NULL, NULL);
|
||||
CertFindRDNAttr(NULL, NULL);
|
||||
/* returns NULL, last error is ERROR_INVALID_PARAMETER
|
||||
* crashes on Vista
|
||||
*/
|
||||
|
@ -395,7 +394,7 @@ static void test_format_object(void)
|
|||
/* Crash */
|
||||
if (0)
|
||||
{
|
||||
ret = pCryptFormatObject(0, 0, 0, NULL, NULL, NULL, 0, NULL, NULL);
|
||||
pCryptFormatObject(0, 0, 0, NULL, NULL, NULL, 0, NULL, NULL);
|
||||
}
|
||||
/* When called with any but the default encoding, it fails to find a
|
||||
* formatting function.
|
||||
|
|
Loading…
Reference in New Issue