diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index dd5c1295a..5ed644ff2 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -2595,7 +2595,10 @@ options: [-s max_relative_stack_bytes] [-m max_relative_heap_memory_bytes]\n\ #ifndef NO_MAIN_FUNCTION int main(int argc, char** argv) { - return (int)wolfcrypt_test_main(argc, argv); + if (wolfcrypt_test_main(argc, argv) >= 0) + return 0; + else + return 1; } #endif