patches for DPDK stable branches
 help / color / mirror / Atom feed
* [PATCH 20.11] test/crypto: fix return value for SNOW3G
@ 2023-06-15 12:08 Saoirse O'Donovan
  2023-06-15 14:15 ` Luca Boccassi
  0 siblings, 1 reply; 2+ messages in thread
From: Saoirse O'Donovan @ 2023-06-15 12:08 UTC (permalink / raw)
  To: Declan Doherty; +Cc: stable, Saoirse O'Donovan

Unit tests were failing due to the return value of the decryption and
authentication functions not being handled correctly. This has now been
modified to return the expected test status.

Fixes: 326e988672aa ("test/crypto: fix bitwise operator in a SNOW3G case")
Cc: stable@dpdk.org

Signed-off-by: Saoirse O'Donovan <saoirse.odonovan@intel.com>
---
 app/test/test_cryptodev.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c
index 34d162f48f..2e76763e09 100644
--- a/app/test/test_cryptodev.c
+++ b/app/test/test_cryptodev.c
@@ -6386,6 +6386,7 @@ snow3g_hash_test_vector_setup(const struct snow3g_test_data *pattern,
 static int
 test_snow3g_decryption_with_digest_test_case_1(void)
 {
+	int ret;
 	struct snow3g_hash_test_data snow3g_hash_data;
 
 	/*
@@ -6394,8 +6395,9 @@ test_snow3g_decryption_with_digest_test_case_1(void)
 	 */
 	snow3g_hash_test_vector_setup(&snow3g_test_case_7, &snow3g_hash_data);
 
-	if (test_snow3g_decryption(&snow3g_test_case_7))
-		return TEST_FAILED;
+	ret = test_snow3g_decryption(&snow3g_test_case_7);
+	if (ret != 0)
+		return ret;
 
 	return test_snow3g_authentication_verify(&snow3g_hash_data);
 }
-- 
2.25.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 20.11] test/crypto: fix return value for SNOW3G
  2023-06-15 12:08 [PATCH 20.11] test/crypto: fix return value for SNOW3G Saoirse O'Donovan
@ 2023-06-15 14:15 ` Luca Boccassi
  0 siblings, 0 replies; 2+ messages in thread
From: Luca Boccassi @ 2023-06-15 14:15 UTC (permalink / raw)
  To: Saoirse O'Donovan; +Cc: Declan Doherty, stable

On Thu, 15 Jun 2023 at 13:09, Saoirse O'Donovan
<saoirse.odonovan@intel.com> wrote:
>
> Unit tests were failing due to the return value of the decryption and
> authentication functions not being handled correctly. This has now been
> modified to return the expected test status.
>
> Fixes: 326e988672aa ("test/crypto: fix bitwise operator in a SNOW3G case")
> Cc: stable@dpdk.org
>
> Signed-off-by: Saoirse O'Donovan <saoirse.odonovan@intel.com>
> ---
>  app/test/test_cryptodev.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)

Thanks, applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-15 14:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-15 12:08 [PATCH 20.11] test/crypto: fix return value for SNOW3G Saoirse O'Donovan
2023-06-15 14:15 ` Luca Boccassi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).