From 001a5ef8975ab61ed92aad48b5bc34308df9788a Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Sat, 10 May 2025 12:05:10 -0500 Subject: [PATCH] wolfcrypt/test/test.c: in main(), return (exit with) 0 for success and 1 for failure. --- wolfcrypt/test/test.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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