DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev v1] app/test: fix of bitwise and operator in return
@ 2022-11-11 11:59 Kai Ji
  2022-11-11 13:16 ` Zhang, Fan
  2022-11-11 16:27 ` [dpdk-dev v2] " Kai Ji
  0 siblings, 2 replies; 6+ messages in thread
From: Kai Ji @ 2022-11-11 11:59 UTC (permalink / raw)
  To: dev; +Cc: stable, gakhil, Kai Ji

This patch remove incorrect bitwise and operator used in the
return function of sw snow3g testcase

Signed-off-by: Kai Ji <kai.ji@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 e1122fcd7c..d6ae762df9 100644
--- a/app/test/test_cryptodev.c
+++ b/app/test/test_cryptodev.c
@@ -6870,8 +6870,10 @@ test_snow3g_decryption_with_digest_test_case_1(void)
 	 */
 	snow3g_hash_test_vector_setup(&snow3g_test_case_7, &snow3g_hash_data);
 
-	return test_snow3g_decryption(&snow3g_test_case_7) &
-			test_snow3g_authentication_verify(&snow3g_hash_data);
+	if (test_snow3g_decryption(&snow3g_test_case_7))
+		return TEST_FAILED;
+
+	return test_snow3g_authentication_verify(&snow3g_hash_data);
 }
 
 static int
-- 
2.17.1


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

end of thread, other threads:[~2022-11-15  9:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-11 11:59 [dpdk-dev v1] app/test: fix of bitwise and operator in return Kai Ji
2022-11-11 13:16 ` Zhang, Fan
2022-11-11 13:18   ` [EXT] " Akhil Goyal
2022-11-11 16:27 ` [dpdk-dev v2] " Kai Ji
2022-11-14 10:22   ` Power, Ciara
2022-11-15  9:30     ` Akhil Goyal

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).