mirror of https://github.com/wolfSSL/wolfssl.git
Merge pull request #7709 from JacobBarthelmeh/staticmemory
fix test case for lean static memory buildpull/7740/head
commit
0979fe8fea
|
@ -76916,8 +76916,13 @@ static int test_wolfSSL_CTX_StaticMemory_SSL(WOLFSSL_CTX* ctx)
|
||||||
|
|
||||||
ExpectNotNull((ssl1 = wolfSSL_new(ctx)));
|
ExpectNotNull((ssl1 = wolfSSL_new(ctx)));
|
||||||
ExpectNotNull((ssl2 = wolfSSL_new(ctx)));
|
ExpectNotNull((ssl2 = wolfSSL_new(ctx)));
|
||||||
|
|
||||||
|
#ifndef WOLFSSL_STATIC_MEMORY_LEAN
|
||||||
/* this should fail because kMaxCtxClients == 2 */
|
/* this should fail because kMaxCtxClients == 2 */
|
||||||
ExpectNull((ssl3 = wolfSSL_new(ctx)));
|
ExpectNull((ssl3 = wolfSSL_new(ctx)));
|
||||||
|
#else
|
||||||
|
(void)ssl3;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (wolfSSL_is_static_memory(ssl1, &ssl_stats) == 1) {
|
if (wolfSSL_is_static_memory(ssl1, &ssl_stats) == 1) {
|
||||||
#if defined(DEBUG_WOLFSSL) && !defined(WOLFSSL_STATIC_MEMORY_LEAN)
|
#if defined(DEBUG_WOLFSSL) && !defined(WOLFSSL_STATIC_MEMORY_LEAN)
|
||||||
|
|
Loading…
Reference in New Issue