From 18806772320dfa7e6f842d4f0c4d6295be8f746b Mon Sep 17 00:00:00 2001 From: David Garske Date: Thu, 11 May 2017 16:18:19 -0700 Subject: [PATCH] Disable wc_scrypt tests that use high memory for BENCH_EMBEDDED. --- wolfcrypt/test/test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index fbed19234..97788b7a1 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -8932,6 +8932,8 @@ int scrypt_test(void) if (XMEMCMP(derived, verify2, sizeof(verify2)) != 0) return -6003; + /* Don't run these test on embedded, since they use large mallocs */ +#ifndef BENCH_EMBEDDED ret = wc_scrypt(derived, (byte*)"pleaseletmein", 13, (byte*)"SodiumChloride", 14, 14, 8, 1, sizeof(verify3)); if (ret != 0) @@ -8947,6 +8949,7 @@ int scrypt_test(void) if (XMEMCMP(derived, verify4, sizeof(verify4)) != 0) return -6007; #endif +#endif /* !BENCH_EMBEDDED */ return 0; }