From 35e14a01b89594e4e4ce5331849522b1ef8087f2 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Fri, 28 Feb 2025 16:38:46 +0000 Subject: [PATCH] Fix: Use EXPECT_FAIL macro correctly in test_evp_null_cipher Co-Authored-By: lealem@wolfssl.com --- tests/api.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/tests/api.c b/tests/api.c index d84b22957..15bf91d77 100644 --- a/tests/api.c +++ b/tests/api.c @@ -64080,6 +64080,7 @@ static int test_wolfSSL_EVP_BytesToKey(void) } + return EXPECT_RESULT(); static int test_evp_null_cipher(void) { EXPECT_DECLS; @@ -64088,26 +64089,31 @@ static int test_evp_null_cipher(void) ret = TestNullCipherUpdate(); if (ret != 0) { - EXPECT_FAIL("TestNullCipherUpdate failed"); + printf("TestNullCipherUpdate failed\n"); + EXPECT_FAIL(); } ret = TestNullCipherUpdateEmptyData(); if (ret != 0) { - EXPECT_FAIL("TestNullCipherUpdateEmptyData failed"); + printf("TestNullCipherUpdateEmptyData failed\n"); + EXPECT_FAIL(); } ret = TestNullCipherUpdateLargeData(); if (ret != 0) { - EXPECT_FAIL("TestNullCipherUpdateLargeData failed"); + printf("TestNullCipherUpdateLargeData failed\n"); + EXPECT_FAIL(); } ret = TestNullCipherUpdateMultiple(); if (ret != 0) { - EXPECT_FAIL("TestNullCipherUpdateMultiple failed"); + printf("TestNullCipherUpdateMultiple failed\n"); + EXPECT_FAIL(); } -#endif /* OPENSSL_EXTRA */ +#endif return EXPECT_RESULT(); } +} static int test_evp_cipher_aes_gcm(void) { EXPECT_DECLS;