Skip to content

Commit 0979fe8

Browse files
authored
Merge pull request wolfSSL#7709 from JacobBarthelmeh/staticmemory
fix test case for lean static memory build
2 parents db4177a + a8780d4 commit 0979fe8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/api.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76916,8 +76916,13 @@ static int test_wolfSSL_CTX_StaticMemory_SSL(WOLFSSL_CTX* ctx)
7691676916

7691776917
ExpectNotNull((ssl1 = wolfSSL_new(ctx)));
7691876918
ExpectNotNull((ssl2 = wolfSSL_new(ctx)));
76919+
76920+
#ifndef WOLFSSL_STATIC_MEMORY_LEAN
7691976921
/* this should fail because kMaxCtxClients == 2 */
7692076922
ExpectNull((ssl3 = wolfSSL_new(ctx)));
76923+
#else
76924+
(void)ssl3;
76925+
#endif
7692176926

7692276927
if (wolfSSL_is_static_memory(ssl1, &ssl_stats) == 1) {
7692376928
#if defined(DEBUG_WOLFSSL) && !defined(WOLFSSL_STATIC_MEMORY_LEAN)

0 commit comments

Comments
 (0)