From 152075848cdeac2f5c0c718fd8de6de062dc6218 Mon Sep 17 00:00:00 2001 From: gojimmypi Date: Tue, 16 Sep 2025 10:48:14 -0700 Subject: [PATCH] Change test order: random_test after SHA tests --- wolfcrypt/test/test.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 5664f7b97..3f10a7109 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -1706,13 +1706,6 @@ options: [-s max_relative_stack_bytes] [-m max_relative_heap_memory_bytes]\n\ TEST_PASS("asn test passed!\n"); #endif -#ifndef WC_NO_RNG - if ( (ret = random_test()) != 0) - TEST_FAIL("RANDOM test failed!\n", ret); - else - TEST_PASS("RANDOM test passed!\n"); -#endif /* WC_NO_RNG */ - #ifndef NO_MD5 if ( (ret = md5_test()) != 0) TEST_FAIL("MD5 test failed!\n", ret); @@ -1797,6 +1790,13 @@ options: [-s max_relative_stack_bytes] [-m max_relative_heap_memory_bytes]\n\ TEST_PASS("SHA-3 test passed!\n"); #endif +#ifndef WC_NO_RNG + if ((ret = random_test()) != 0) + TEST_FAIL("RANDOM test failed!\n", ret); + else + TEST_PASS("RANDOM test passed!\n"); +#endif /* WC_NO_RNG */ + #ifdef WOLFSSL_SHAKE128 if ( (ret = shake128_test()) != 0) TEST_FAIL("SHAKE128 test failed!\n", ret);