From a3c09f679441392a462cc420e4cdb57b3aaa3bc8 Mon Sep 17 00:00:00 2001 From: Sean Parkinson Date: Tue, 22 Oct 2019 08:47:49 +1000 Subject: [PATCH] Fix unittest to pass when compiling for NGINX --- tests/api.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/api.c b/tests/api.c index 4954b2f5c..5cbf34e9f 100644 --- a/tests/api.c +++ b/tests/api.c @@ -22280,10 +22280,11 @@ static void test_wolfSSL_ERR_put_error(void) AssertIntEQ(ERR_get_error_line_data(&file, &line, NULL, NULL), 0); PEMerr(4,4); - #if (defined(OPENSSL_EXTRA) && !defined(OPENSSL_ALL)) || defined(DEBUG_WOLFSSL_VERBOSE) - AssertIntEQ(ERR_get_error(), 4); - #else + #if defined(OPENSSL_ALL) || defined(WOLFSSL_NGINX) || \ + defined(WOLFSSL_HAPROXY) AssertIntEQ(ERR_get_error(), -4); + #else + AssertIntEQ(ERR_get_error(), 4); #endif /* Empty and free up all error nodes */ ERR_clear_error();