From: Kai Ji <kai.ji@intel.com>
To: dev@dpdk.org
Cc: stable@dpdk.org, gakhil@marvell.com, Kai Ji <kai.ji@intel.com>,
lukaszx.krakowiak@intel.com
Subject: [dpdk-dev v2] app/test: fix of bitwise and operator in return
Date: Sat, 12 Nov 2022 00:27:15 +0800 [thread overview]
Message-ID: <20221111162715.37093-1-kai.ji@intel.com> (raw)
In-Reply-To: <20221111115941.16232-1-kai.ji@intel.com>
This patch remove incorrect bitwise and operator used in the
return function of sw snow3g testcase
Fixes: 24342ade2c9d ("test/crypto: check SNOW3G when digest is encrypted")
Cc: lukaszx.krakowiak@intel.com
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
next prev parent reply other threads:[~2022-11-11 16:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-11 11:59 [dpdk-dev v1] " Kai Ji
2022-11-11 13:16 ` Zhang, Fan
2022-11-11 13:18 ` [EXT] " Akhil Goyal
2022-11-11 16:27 ` Kai Ji [this message]
2022-11-14 10:22 ` [dpdk-dev v2] " Power, Ciara
2022-11-15 9:30 ` Akhil Goyal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221111162715.37093-1-kai.ji@intel.com \
--to=kai.ji@intel.com \
--cc=dev@dpdk.org \
--cc=gakhil@marvell.com \
--cc=lukaszx.krakowiak@intel.com \
--cc=stable@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).