Skip to content

Commit 6bda10a

Browse files
committed
define WOLFSSL_SMALL_STACK in tests and benchmark for ASYNC
1 parent 3921362 commit 6bda10a

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

tests/api/test_rsa.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
#include <wolfcrypt/src/misc.c>
2929
#endif
3030

31+
#ifdef WOLFSSL_ASYNC_CRYPT
32+
#define WOLFSSL_SMALL_STACK
33+
#endif
34+
3135
#include <wolfssl/wolfcrypt/rsa.h>
3236
#include <wolfssl/wolfcrypt/types.h>
3337
#include <tests/api/api.h>

wolfcrypt/benchmark/benchmark.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@
6969
/* Macro to disable benchmark */
7070
#ifndef NO_CRYPT_BENCHMARK
7171

72+
#ifdef WOLFSSL_ASYNC_CRYPT
73+
#define WOLFSSL_SMALL_STACK
74+
#endif
7275
#define WC_ALLOC_DO_ON_FAILURE() do { printf("out of memory at benchmark.c L %d\n", __LINE__); ret = MEMORY_E; goto exit; } while (0)
7376

7477
#include <wolfssl/wolfcrypt/types.h>

wolfcrypt/test/test.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343
#define WOLFSSL_DEBUG_TRACE_ERROR_CODES_ALWAYS
4444
#endif
4545

46+
#ifdef WOLFSSL_ASYNC_CRYPT
47+
#define WOLFSSL_SMALL_STACK
48+
#endif
49+
4650
#if !defined(NO_CRYPT_TEST) || defined(WC_TEST_EXPORT_SUBTESTS)
4751

4852
#include <wolfssl/version.h>

0 commit comments

Comments
 (0)