forked from wolfSSL/wolfssl
Merge pull request #1372 from JacobBarthelmeh/UnitTests
clear error node queue after test case and initialize logging buffer
This commit is contained in:
@ -15589,6 +15589,9 @@ static void test_wolfSSL_ERR_put_error(void)
|
|||||||
AssertIntEQ(ERR_get_error_line(&file, &line), 0);
|
AssertIntEQ(ERR_get_error_line(&file, &line), 0);
|
||||||
AssertNull(file);
|
AssertNull(file);
|
||||||
|
|
||||||
|
/* Empty and free up all error nodes */
|
||||||
|
ERR_clear_error();
|
||||||
|
|
||||||
printf(resultFmt, passed);
|
printf(resultFmt, passed);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -266,6 +266,11 @@ void WOLFSSL_ERROR(int error)
|
|||||||
* to unlock mutex and log what buffer was created. */
|
* to unlock mutex and log what buffer was created. */
|
||||||
}
|
}
|
||||||
#if defined(OPENSSL_EXTRA) && !defined(WOLFCRYPT_ONLY)
|
#if defined(OPENSSL_EXTRA) && !defined(WOLFCRYPT_ONLY)
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
XSNPRINTF(buffer, sizeof(buffer),
|
||||||
|
"wolfSSL error occurred, error = %d", error);
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user