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)
|
if (0)
|
||||||
{
|
{
|
||||||
/* crashes */
|
/* crashes */
|
||||||
SetLastError(0xdeadbeef);
|
CertFindAttribute(NULL, 1, NULL);
|
||||||
ret = CertFindAttribute(NULL, 1, NULL);
|
|
||||||
/* returns NULL, last error is ERROR_INVALID_PARAMETER
|
/* returns NULL, last error is ERROR_INVALID_PARAMETER
|
||||||
* crashes on Vista
|
* crashes on Vista
|
||||||
*/
|
*/
|
||||||
@ -138,7 +137,7 @@ static void test_findRDNAttr(void)
|
|||||||
{
|
{
|
||||||
/* crashes */
|
/* crashes */
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
ret = CertFindRDNAttr(NULL, NULL);
|
CertFindRDNAttr(NULL, NULL);
|
||||||
/* returns NULL, last error is ERROR_INVALID_PARAMETER
|
/* returns NULL, last error is ERROR_INVALID_PARAMETER
|
||||||
* crashes on Vista
|
* crashes on Vista
|
||||||
*/
|
*/
|
||||||
@ -395,7 +394,7 @@ static void test_format_object(void)
|
|||||||
/* Crash */
|
/* Crash */
|
||||||
if (0)
|
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
|
/* When called with any but the default encoding, it fails to find a
|
||||||
* formatting function.
|
* formatting function.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user