Merge pull request #2531 from SparkiDev/nginx_unittest

Fix unittest to pass when compiling for NGINX
This commit is contained in:
toddouska
2019-10-28 11:27:22 -07:00
committed by GitHub

View File

@@ -22279,10 +22279,11 @@ static void test_wolfSSL_ERR_put_error(void)
AssertIntEQ(ERR_get_error_line_data(&file, &line, NULL, NULL), 0); AssertIntEQ(ERR_get_error_line_data(&file, &line, NULL, NULL), 0);
PEMerr(4,4); PEMerr(4,4);
#if (defined(OPENSSL_EXTRA) && !defined(OPENSSL_ALL)) || defined(DEBUG_WOLFSSL_VERBOSE) #if defined(OPENSSL_ALL) || defined(WOLFSSL_NGINX) || \
AssertIntEQ(ERR_get_error(), 4); defined(WOLFSSL_HAPROXY)
#else
AssertIntEQ(ERR_get_error(), -4); AssertIntEQ(ERR_get_error(), -4);
#else
AssertIntEQ(ERR_get_error(), 4);
#endif #endif
/* Empty and free up all error nodes */ /* Empty and free up all error nodes */
ERR_clear_error(); ERR_clear_error();