Skip to content

Commit d3de630

Browse files
committed
Exit wolfcrypt test if wolfCrypt_Init fails
1 parent eecf823 commit d3de630

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

wolfcrypt/test/test.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3064,11 +3064,13 @@ options: [-s max_relative_stack_bytes] [-m max_relative_heap_memory_bytes]\n\
30643064
printf("Math: %s\n", wc_GetMathInfo());
30653065
#endif
30663066

3067+
if (ret == 0) {
30673068
#ifdef HAVE_STACK_SIZE
3068-
StackSizeCheck(&args, wolfcrypt_test);
3069+
StackSizeCheck(&args, wolfcrypt_test);
30693070
#else
3070-
wolfcrypt_test(&args);
3071+
wolfcrypt_test(&args);
30713072
#endif
3073+
}
30723074

30733075
if ((ret = wolfCrypt_Cleanup()) != 0) {
30743076
printf("wolfCrypt_Cleanup failed %d\n", (int)ret);

0 commit comments

Comments
 (0)