From a8780d4a801d5163c3f86582e881e3c4437210f3 Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Wed, 3 Jul 2024 11:25:05 -0600 Subject: [PATCH] fix test case for lean static memory build --- tests/api.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/api.c b/tests/api.c index 6b8b87ba5..0c74efccd 100644 --- a/tests/api.c +++ b/tests/api.c @@ -68692,8 +68692,13 @@ static int test_wolfSSL_CTX_StaticMemory_SSL(WOLFSSL_CTX* ctx) ExpectNotNull((ssl1 = wolfSSL_new(ctx))); ExpectNotNull((ssl2 = wolfSSL_new(ctx))); + +#ifndef WOLFSSL_STATIC_MEMORY_LEAN /* this should fail because kMaxCtxClients == 2 */ ExpectNull((ssl3 = wolfSSL_new(ctx))); +#else + (void)ssl3; +#endif if (wolfSSL_is_static_memory(ssl1, &ssl_stats) == 1) { #if defined(DEBUG_WOLFSSL) && !defined(WOLFSSL_STATIC_MEMORY_LEAN)