mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
fix unit test for wc_ERR_print_errors_fp() when NO_ERROR_QUEUE is defined
This commit is contained in:
@ -36995,9 +36995,16 @@ static int test_wc_ERR_print_errors_fp (void)
|
||||
#if defined(DEBUG_WOLFSSL)
|
||||
AssertTrue(XFSEEK(fp, 0, XSEEK_END) == 0);
|
||||
sz = XFTELL(fp);
|
||||
#ifdef NO_ERROR_QUEUE
|
||||
/* File should be empty when NO_ERROR_QUEUE is defined */
|
||||
if (sz != 0) {
|
||||
ret = BAD_FUNC_ARG;
|
||||
}
|
||||
#else
|
||||
if (sz == 0) {
|
||||
ret = BAD_FUNC_ARG;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
printf(resultFmt, ret == 0 ? passed : failed);
|
||||
XFCLOSE(fp);
|
||||
|
Reference in New Issue
Block a user